Module: Arena::Creatable
- Included in:
- Block, Channel, Comment, Connection, Entity::Image, Story, User
- Defined in:
- lib/arena/creatable.rb
Instance Method Summary collapse
-
#created_at ⇒ Time
Time when the object was created on Arena.
-
#updated_at ⇒ Time
Time when the object was last updated on Arena.
Instance Method Details
#created_at ⇒ Time
Time when the object was created on Arena
10 11 12 |
# File 'lib/arena/creatable.rb', line 10 def created_at @created_at ||= Time.parse(@attrs['created_at']) if created? end |
#updated_at ⇒ Time
Time when the object was last updated on Arena
17 18 19 |
# File 'lib/arena/creatable.rb', line 17 def updated_at @updated_at ||= Time.parse(@attrs['updated_at']) if updated? end |