Module: Arena::Creatable

Included in:
Block, Channel, Comment, Connection, Entity::Image, Story, User
Defined in:
lib/arena/creatable.rb

Instance Method Summary collapse

Instance Method Details

#created_atTime

Time when the object was created on Arena

Returns:

  • (Time)


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

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

#updated_atTime

Time when the object was last updated on Arena

Returns:

  • (Time)


16
17
18
# File 'lib/arena/creatable.rb', line 16

def updated_at
  @updated_at ||= Time.parse(@attrs['updated_at']) if updated?
end