Class: LoLBase::RankedStats::Champion
- Inherits:
-
Object
- Object
- LoLBase::RankedStats::Champion
- Defined in:
- lib/lolbase/data/stats.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(params) ⇒ Champion
constructor
A new instance of Champion.
Constructor Details
#initialize(params) ⇒ Champion
Returns a new instance of Champion.
96 97 98 99 |
# File 'lib/lolbase/data/stats.rb', line 96 def initialize(params) @id = params[:id] @stats = params[:stats] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
94 95 96 |
# File 'lib/lolbase/data/stats.rb', line 94 def id @id end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
94 95 96 |
# File 'lib/lolbase/data/stats.rb', line 94 def stats @stats end |