added participant id

This commit is contained in:
danijoo
2014-03-16 14:41:07 +01:00
parent e3a17d578f
commit 52b34b37b7

View File

@@ -5,12 +5,13 @@ module Sightstone
# @attr [String] tier tier of the requestet summoner (can be: CHALLENGER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE)
# @attr [Array<LeagueItem>] entries
class League
attr_accessor :entries, :name, :queue, :tier
attr_accessor :entries, :name, :queue, :tier, :participantId
def initialize(data)
@name = data['name']
@queue = data['queue']
@tier = data['tier']
@participantId = data['participantId']
@entries = []
data['entries'].each do |entry|
@entries << LeagueItem.new(entry)