class Sightstone::MatchHistory
match history of a summoner @attr [Fixnum] summonerId ID of the summoner @attr [Array<HistoryGame>] games unsorted list of recently played games
Attributes
games[RW]
summonerId[RW]
Public Class Methods
new(data)
click to toggle source
# File lib/sightstone/match_history.rb, line 8 def initialize(data) @summonerId = data['summonerId'] @games = [] data['games'].each do |game| games << HistoryGame.new(game) end end