added participant id
This commit is contained in:
@@ -5,12 +5,13 @@ module Sightstone
|
|||||||
# @attr [String] tier tier of the requestet summoner (can be: CHALLENGER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE)
|
# @attr [String] tier tier of the requestet summoner (can be: CHALLENGER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE)
|
||||||
# @attr [Array<LeagueItem>] entries
|
# @attr [Array<LeagueItem>] entries
|
||||||
class League
|
class League
|
||||||
attr_accessor :entries, :name, :queue, :tier
|
attr_accessor :entries, :name, :queue, :tier, :participantId
|
||||||
|
|
||||||
def initialize(data)
|
def initialize(data)
|
||||||
@name = data['name']
|
@name = data['name']
|
||||||
@queue = data['queue']
|
@queue = data['queue']
|
||||||
@tier = data['tier']
|
@tier = data['tier']
|
||||||
|
@participantId = data['participantId']
|
||||||
@entries = []
|
@entries = []
|
||||||
data['entries'].each do |entry|
|
data['entries'].each do |entry|
|
||||||
@entries << LeagueItem.new(entry)
|
@entries << LeagueItem.new(entry)
|
||||||
|
|||||||
Reference in New Issue
Block a user