Class: Arena::Group
- Inherits:
-
Object
- Object
- Arena::Group
- Defined in:
- lib/arena/group.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#stories ⇒ Object
readonly
Returns the value of attribute stories.
Instance Method Summary collapse
- #created_at ⇒ Object
-
#initialize(id, stories) ⇒ Group
constructor
A new instance of Group.
- #summary ⇒ Object
Constructor Details
#initialize(id, stories) ⇒ Group
Returns a new instance of Group.
8 9 10 11 |
# File 'lib/arena/group.rb', line 8 def initialize(id, stories) @id = id @stories = stories end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/arena/group.rb', line 6 def id @id end |
#stories ⇒ Object (readonly)
Returns the value of attribute stories.
6 7 8 |
# File 'lib/arena/group.rb', line 6 def stories @stories end |
Instance Method Details
#created_at ⇒ Object
13 14 15 |
# File 'lib/arena/group.rb', line 13 def created_at @created_at ||= stories.first.created_at end |
#summary ⇒ Object
17 18 19 |
# File 'lib/arena/group.rb', line 17 def summary @summary ||= Arena::Summary.new(stories) end |