Module: Twitter::Creatable

Includes:
Memoizable
Included in:
DirectMessage, List, SavedSearch, TrendResults, Tweet, User
Defined in:
lib/twitter/creatable.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) created?



17
18
19
# File 'lib/twitter/creatable.rb', line 17

def created?
  !!@attrs[:created_at]
end

- (Time) created_at

Time when the object was created on Twitter



11
12
13
# File 'lib/twitter/creatable.rb', line 11

def created_at
  Time.parse(@attrs[:created_at]) unless @attrs[:created_at].nil?
end