Class: LeagueItem
- Inherits:
-
Object
- Object
- LeagueItem
- Defined in:
- lib/sightstone/league.rb
Instance Attribute Summary (collapse)
-
- (Object) isActive
Returns the value of attribute isActive.
-
- (Object) isFreshBlood
Returns the value of attribute isFreshBlood.
-
- (Object) isHotStreak
Returns the value of attribute isHotStreak.
-
- (Object) isVeteran
Returns the value of attribute isVeteran.
-
- (Object) lastPlayed
Returns the value of attribute lastPlayed.
-
- (Object) leagueName
Returns the value of attribute leagueName.
-
- (Object) leaguePoints
Returns the value of attribute leaguePoints.
-
- (Object) losses
Returns the value of attribute losses.
-
- (Object) miniSeries
Returns the value of attribute miniSeries.
-
- (Object) playerOrTeamId
Returns the value of attribute playerOrTeamId.
-
- (Object) playerOrTeamName
Returns the value of attribute playerOrTeamName.
-
- (Object) queueType
Returns the value of attribute queueType.
-
- (Object) rank
Returns the value of attribute rank.
-
- (Object) tier
Returns the value of attribute tier.
-
- (Object) timeUntilDecay
Returns the value of attribute timeUntilDecay.
-
- (Object) wins
Returns the value of attribute wins.
Instance Method Summary (collapse)
-
- (LeagueItem) initialize(data)
constructor
A new instance of LeagueItem.
Constructor Details
- (LeagueItem) initialize(data)
Returns a new instance of LeagueItem
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/sightstone/league.rb', line 19 def initialize(data) @isFreshBlood=data['isFreshBlood'] @isHotStreak=data['isHotStreak'] @isActive=data['isActive'] @isVeteran=data['isVeteran'] @lastPlayed=data['lastPlayed'] @leagueName=data['leageuName'] @leaguePoints=data['leaguePoints'] @losses=data['losses'] @miniSeries= MiniSeries.new(data['miniSeries']) if data.has_key? 'miniSeries' @playerOrTeamId=data['playerOrTeamId'] @playerOrTeamName=data['playerOrTeamName'] @queueType=data['queueType'] @rank=data['rank'] @tier=data['tier'] @timeUntilDecay=data['timeUntilDecay'] @wins=data['wins'] end |
Instance Attribute Details
- (Object) isActive
Returns the value of attribute isActive
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def isActive @isActive end |
- (Object) isFreshBlood
Returns the value of attribute isFreshBlood
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def isFreshBlood @isFreshBlood end |
- (Object) isHotStreak
Returns the value of attribute isHotStreak
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def isHotStreak @isHotStreak end |
- (Object) isVeteran
Returns the value of attribute isVeteran
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def isVeteran @isVeteran end |
- (Object) lastPlayed
Returns the value of attribute lastPlayed
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def lastPlayed @lastPlayed end |
- (Object) leagueName
Returns the value of attribute leagueName
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def leagueName @leagueName end |
- (Object) leaguePoints
Returns the value of attribute leaguePoints
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def leaguePoints @leaguePoints end |
- (Object) losses
Returns the value of attribute losses
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def losses @losses end |
- (Object) miniSeries
Returns the value of attribute miniSeries
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def miniSeries @miniSeries end |
- (Object) playerOrTeamId
Returns the value of attribute playerOrTeamId
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def playerOrTeamId @playerOrTeamId end |
- (Object) playerOrTeamName
Returns the value of attribute playerOrTeamName
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def playerOrTeamName @playerOrTeamName end |
- (Object) queueType
Returns the value of attribute queueType
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def queueType @queueType end |
- (Object) rank
Returns the value of attribute rank
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def rank @rank end |
- (Object) tier
Returns the value of attribute tier
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def tier @tier end |
- (Object) timeUntilDecay
Returns the value of attribute timeUntilDecay
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def timeUntilDecay @timeUntilDecay end |
- (Object) wins
Returns the value of attribute wins
17 18 19 |
# File 'lib/sightstone/league.rb', line 17 def wins @wins end |