Class: RankedStats
- Inherits:
-
Object
- Object
- RankedStats
- Defined in:
- lib/sightstone/ranked_stats.rb
Instance Attribute Summary (collapse)
-
- (Object) champions
Returns the value of attribute champions.
-
- (Object) modifyData
Returns the value of attribute modifyData.
-
- (Object) modifyDateStr
Returns the value of attribute modifyDateStr.
-
- (Object) summonerId
Returns the value of attribute summonerId.
Instance Method Summary (collapse)
-
- (RankedStats) initialize(data)
constructor
A new instance of RankedStats.
Constructor Details
- (RankedStats) initialize(data)
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
- (Object) champions
Returns the value of attribute champions
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def champions @champions end |
- (Object) modifyData
Returns the value of attribute modifyData
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def modifyData @modifyData end |
- (Object) modifyDateStr
Returns the value of attribute modifyDateStr
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def modifyDateStr @modifyDateStr end |
- (Object) summonerId
Returns the value of attribute summonerId
4 5 6 |
# File 'lib/sightstone/ranked_stats.rb', line 4 def summonerId @summonerId end |