Class: RankedStats
- Inherits:
-
Object
- Object
- RankedStats
- Defined in:
- lib/sightstone/ranked_stats.rb
Instance Attribute Summary collapse
-
#champions ⇒ Object
Returns the value of attribute champions.
-
#modifyData ⇒ Object
Returns the value of attribute modifyData.
-
#modifyDateStr ⇒ Object
Returns the value of attribute modifyDateStr.
-
#summonerId ⇒ Object
Returns the value of attribute summonerId.
Instance Method Summary collapse
-
#initialize(data) ⇒ RankedStats
constructor
A new instance of RankedStats.
Constructor Details
#initialize(data) ⇒ RankedStats
Returns a new instance of RankedStats.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/sightstone/ranked_stats.rb', line 6 def initialize(data) @summonerId = data['summonerId'] @modifyDate = data['modifyDate'] @modifyDateStr = data['modifyDateStr'] @champions = [] data['champions'].each do |champ| @champions << ChampionStats.new(champ) end end |
Instance Attribute Details
#champions ⇒ Object
Returns the value of attribute champions.
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def champions @champions end |
#modifyData ⇒ Object
Returns the value of attribute modifyData.
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def modifyData @modifyData end |
#modifyDateStr ⇒ Object
Returns the value of attribute modifyDateStr.
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def modifyDateStr @modifyDateStr end |
#summonerId ⇒ Object
Returns the value of attribute summonerId.
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def summonerId @summonerId end |