Class: MatchHistory
- Inherits:
-
Object
- Object
- MatchHistory
- Defined in:
- lib/sightstone/match_history.rb
Instance Attribute Summary (collapse)
-
- (Object) games
Returns the value of attribute games.
-
- (Object) summonerId
Returns the value of attribute summonerId.
Instance Method Summary (collapse)
-
- (MatchHistory) initialize(data)
constructor
A new instance of MatchHistory.
Constructor Details
- (MatchHistory) initialize(data)
Returns a new instance of MatchHistory
6 7 8 9 10 11 12 |
# File 'lib/sightstone/match_history.rb', line 6 def initialize(data) @summonerId = data['summonerId'] @games = [] data['games'].each do |game| games << Game.new(game) end end |
Instance Attribute Details
- (Object) games
Returns the value of attribute games
4 5 6 |
# File 'lib/sightstone/match_history.rb', line 4 def games @games end |
- (Object) summonerId
Returns the value of attribute summonerId
4 5 6 |
# File 'lib/sightstone/match_history.rb', line 4 def summonerId @summonerId end |