Class: MatchHistory

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/match_history.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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