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.
89 90 91 92 |
# File 'lib/lolbase/data/stats.rb', line 89 def initialize(params) @id = params[:id] @stats = params[:stats] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
87 88 89 |
# File 'lib/lolbase/data/stats.rb', line 87 def id @id end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
87 88 89 |
# File 'lib/lolbase/data/stats.rb', line 87 def stats @stats end |