Class: Lol::Game
Instance Attribute Summary collapse
-
#champion_id ⇒ Fixnum
readonly
Champion Id associated with this game.
-
#create_date ⇒ Time
readonly
Date game was played.
-
#fellow_players ⇒ Array
readonly
List of players associated with this game.
-
#game_id ⇒ Fixnum
readonly
Game Id.
-
#game_mode ⇒ String
readonly
Game Mode.
-
#game_type ⇒ String
readonly
Game Type.
-
#id ⇒ Fixnum
readonly
Game Id.
- #invalid ⇒ true, false readonly
-
#level ⇒ Fixnum
readonly
Level.
-
#map_id ⇒ Fixnum
readonly
Map Id.
-
#spell1 ⇒ Fixnum
readonly
Summoner first spell id.
-
#spell2 ⇒ Fixnum
readonly
Summoner second spell id.
-
#statistics ⇒ Array
readonly
Statistics associated with the game for this summoner.
-
#stats ⇒ Array
readonly
Statistics associated with the game for this summoner.
-
#sub_type ⇒ String
readonly
Game sub-type.
-
#team_id ⇒ Fixnum
readonly
Team Id associated with game.
Attributes inherited from Model
Method Summary
Methods inherited from Model
Constructor Details
This class inherits a constructor from Lol::Model
Instance Attribute Details
#champion_id ⇒ Fixnum
Returns Champion Id associated with this game.
7 8 9 |
# File 'lib/lol/game.rb', line 7 def champion_id @champion_id end |
#create_date ⇒ Time
Returns Date game was played.
11 12 13 |
# File 'lib/lol/game.rb', line 11 def create_date @create_date end |
#fellow_players ⇒ Array
Returns list of players associated with this game.
15 16 17 |
# File 'lib/lol/game.rb', line 15 def fellow_players @fellow_players end |
#game_id ⇒ Fixnum
Returns Game Id.
19 20 21 |
# File 'lib/lol/game.rb', line 19 def game_id @game_id end |
#game_mode ⇒ String
Returns Game Mode.
23 24 25 |
# File 'lib/lol/game.rb', line 23 def game_mode @game_mode end |
#game_type ⇒ String
Returns Game Type.
27 28 29 |
# File 'lib/lol/game.rb', line 27 def game_type @game_type end |
#id ⇒ Fixnum (readonly)
Returns Game Id.
19 |
# File 'lib/lol/game.rb', line 19 attr_reader :game_id |
#invalid ⇒ true, false
32 33 34 |
# File 'lib/lol/game.rb', line 32 def invalid @invalid end |
#level ⇒ Fixnum
Returns Level.
36 37 38 |
# File 'lib/lol/game.rb', line 36 def level @level end |
#map_id ⇒ Fixnum
Returns Map Id.
40 41 42 |
# File 'lib/lol/game.rb', line 40 def map_id @map_id end |
#spell1 ⇒ Fixnum
Returns Summoner first spell id.
44 45 46 |
# File 'lib/lol/game.rb', line 44 def spell1 @spell1 end |
#spell2 ⇒ Fixnum
Returns Summoner second spell id.
48 49 50 |
# File 'lib/lol/game.rb', line 48 def spell2 @spell2 end |
#statistics ⇒ Array (readonly)
Returns Statistics associated with the game for this summoner.
52 |
# File 'lib/lol/game.rb', line 52 attr_reader :stats |
#stats ⇒ Array
Returns Statistics associated with the game for this summoner.
52 53 54 |
# File 'lib/lol/game.rb', line 52 def stats @stats end |
#sub_type ⇒ String
Returns Game sub-type.
56 57 58 |
# File 'lib/lol/game.rb', line 56 def sub_type @sub_type end |
#team_id ⇒ Fixnum
Returns Team Id associated with game.
60 61 62 |
# File 'lib/lol/game.rb', line 60 def team_id @team_id end |