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
9 10 11 |
# File 'lib/arena/creatable.rb', line 9 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
16 17 18 |
# File 'lib/arena/creatable.rb', line 16 def updated_at @updated_at ||= Time.parse(@attrs['updated_at']) if updated? end |