Class: LoLBase::SummaryStats::Summary
- Inherits:
-
Object
- Object
- LoLBase::SummaryStats::Summary
- Defined in:
- lib/lolbase/data/stats.rb
Instance Attribute Summary collapse
-
#last_modified ⇒ Object
readonly
Returns the value of attribute last_modified.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(params) ⇒ Summary
constructor
A new instance of Summary.
Constructor Details
#initialize(params) ⇒ Summary
Returns a new instance of Summary.
37 38 39 40 41 |
# File 'lib/lolbase/data/stats.rb', line 37 def initialize(params) @name = params[:name] @last_modified = params[:last_modified] @stats = params[:stats] end |
Instance Attribute Details
#last_modified ⇒ Object (readonly)
Returns the value of attribute last_modified.
35 36 37 |
# File 'lib/lolbase/data/stats.rb', line 35 def last_modified @last_modified end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
35 36 37 |
# File 'lib/lolbase/data/stats.rb', line 35 def name @name end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
35 36 37 |
# File 'lib/lolbase/data/stats.rb', line 35 def stats @stats end |