class Sightstone::League
Class to represent a league @attr [String] name name of the league @attr [String] queue queue Type (can be: RANKED_SOLO_5x5, RANKED_TEAM_3x3, RANKED_TEAM_5x5) @attr [String] tier tier of the requestet summoner (can be: CHALLENGER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE) @attr [Array<LeagueItem>] entries
Attributes
entries[RW]
name[RW]
participantId[RW]
queue[RW]
tier[RW]
Public Class Methods
new(data)
click to toggle source
# File lib/sightstone/league.rb, line 10 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) end end