Class: Rito::RecentGames::Game

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/recent_games/game.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 = {}) ⇒ Game

Returns a new instance of Game


19
20
21
22
23
# File 'lib/rito/recent_games/game.rb', line 19

def initialize(attributes = {})
  self.fellowPlayers = Rito::RecentGames::Player.from_list(attributes.delete('fellowPlayers')) if attributes['fellowPlayers']
  self.stats = Rito::RecentGames::RawStats.new(attributes.delete('stats')) if attributes['stats']
  super
end

Instance Attribute Details

#championIdObject

Returns the value of attribute championId


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def championId
  @championId
end

#createDateObject

Returns the value of attribute createDate


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def createDate
  @createDate
end

#fellowPlayersObject

Returns the value of attribute fellowPlayers


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def fellowPlayers
  @fellowPlayers
end

#gameIdObject

Returns the value of attribute gameId


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def gameId
  @gameId
end

#gameModeObject

Returns the value of attribute gameMode


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def gameMode
  @gameMode
end

#gameTypeObject

Returns the value of attribute gameType


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def gameType
  @gameType
end

#invalidObject

Returns the value of attribute invalid


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def invalid
  @invalid
end

#ipEarnedObject

Returns the value of attribute ipEarned


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def ipEarned
  @ipEarned
end

#levelObject

Returns the value of attribute level


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def level
  @level
end

#mapIdObject

Returns the value of attribute mapId


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def mapId
  @mapId
end

#spell1Object

Returns the value of attribute spell1


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def spell1
  @spell1
end

#spell2Object

Returns the value of attribute spell2


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def spell2
  @spell2
end

#statsObject

Returns the value of attribute stats


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def stats
  @stats
end

#subTypeObject

Returns the value of attribute subType


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def subType
  @subType
end

#teamIdObject

Returns the value of attribute teamId


3
4
5
# File 'lib/rito/recent_games/game.rb', line 3

def teamId
  @teamId
end