Class: LoLBase::RankedStats::Champion

Inherits:
Object
  • Object
show all
Defined in:
lib/lolbase/data/stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



87
88
89
# File 'lib/lolbase/data/stats.rb', line 87

def id
  @id
end

#statsObject (readonly)

Returns the value of attribute stats.



87
88
89
# File 'lib/lolbase/data/stats.rb', line 87

def stats
  @stats
end