Class: Rito::League::Entry

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/league/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiBase

#attributes=, call_api, from_list, from_map, from_map_of_lists

Constructor Details

#initialize(attributes = {}) ⇒ Entry

Returns a new instance of Entry


15
16
17
18
# File 'lib/rito/league/entry.rb', line 15

def initialize(attributes = {})
	self.miniSeries = Rito::League::MiniSeries.new(attributes.delete('miniSeries')) if attributes['miniSeries']
	super
end

Instance Attribute Details

#divisionObject

Returns the value of attribute division


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def division
  @division
end

#isFreshBloodObject

Returns the value of attribute isFreshBlood


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def isFreshBlood
  @isFreshBlood
end

#isHotStreakObject

Returns the value of attribute isHotStreak


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def isHotStreak
  @isHotStreak
end

#isInactiveObject

Returns the value of attribute isInactive


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def isInactive
  @isInactive
end

#isVeteranObject

Returns the value of attribute isVeteran


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def isVeteran
  @isVeteran
end

#leaguePointsObject

Returns the value of attribute leaguePoints


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def leaguePoints
  @leaguePoints
end

#lossesObject

Returns the value of attribute losses


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def losses
  @losses
end

#miniSeriesObject

Returns the value of attribute miniSeries


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def miniSeries
  @miniSeries
end

#playerOrTeamIdObject

Returns the value of attribute playerOrTeamId


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def playerOrTeamId
  @playerOrTeamId
end

#playerOrTeamNameObject

Returns the value of attribute playerOrTeamName


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def playerOrTeamName
  @playerOrTeamName
end

#winsObject

Returns the value of attribute wins


3
4
5
# File 'lib/rito/league/entry.rb', line 3

def wins
  @wins
end