Module: Twitter::Creatable

Included in:
Action, DirectMessage, SavedSearch, Status, User
Defined in:
lib/twitter/creatable.rb

Instance Method Summary collapse

Instance Method Details

#created_atTime

Time when the object was created on Twitter

Returns:

  • (Time)


9
10
11
# File 'lib/twitter/creatable.rb', line 9

def created_at
  @created_at ||= Time.parse(@attrs['created_at']) unless @attrs['created_at'].nil?
end