Class: Lol::Game

Inherits:
Model show all
Defined in:
lib/lol/game.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#raw

Method Summary

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from Lol::Model

Instance Attribute Details

#champion_idObject

Returns the value of attribute champion_id.



11
12
13
# File 'lib/lol/game.rb', line 11

def champion_id
  @champion_id
end

#create_dateObject

Returns the value of attribute create_date.



15
16
17
# File 'lib/lol/game.rb', line 15

def create_date
  @create_date
end

#create_date_strObject

Returns the value of attribute create_date_str.



19
20
21
# File 'lib/lol/game.rb', line 19

def create_date_str
  @create_date_str
end

#fellow_playersObject

Returns the value of attribute fellow_players.



23
24
25
# File 'lib/lol/game.rb', line 23

def fellow_players
  @fellow_players
end

#game_idObject

Returns the value of attribute game_id.



7
8
9
# File 'lib/lol/game.rb', line 7

def game_id
  @game_id
end

#game_modeObject

Returns the value of attribute game_mode.



27
28
29
# File 'lib/lol/game.rb', line 27

def game_mode
  @game_mode
end

#game_typeObject

Returns the value of attribute game_type.



31
32
33
# File 'lib/lol/game.rb', line 31

def game_type
  @game_type
end

#idFixnum (readonly)

Returns Game Id.

Returns:

  • (Fixnum)

    Game Id



7
# File 'lib/lol/game.rb', line 7

attr_reader :game_id

#invalidObject

Returns the value of attribute invalid.



36
37
38
# File 'lib/lol/game.rb', line 36

def invalid
  @invalid
end

#levelObject

Returns the value of attribute level.



40
41
42
# File 'lib/lol/game.rb', line 40

def level
  @level
end

#map_idObject

Returns the value of attribute map_id.



44
45
46
# File 'lib/lol/game.rb', line 44

def map_id
  @map_id
end

#spell1Fixnum

Returns Summoner first spell id.

Returns:

  • (Fixnum)

    Summoner first spell id



48
49
50
# File 'lib/lol/game.rb', line 48

def spell1
  @spell1
end

#spell2Fixnum

Returns Summoner second spell id.

Returns:

  • (Fixnum)

    Summoner second spell id



52
53
54
# File 'lib/lol/game.rb', line 52

def spell2
  @spell2
end

#statisticsObject

Returns the value of attribute statistics.



56
57
58
# File 'lib/lol/game.rb', line 56

def statistics
  @statistics
end

#sub_typeObject

Returns the value of attribute sub_type.



60
61
62
# File 'lib/lol/game.rb', line 60

def sub_type
  @sub_type
end

#team_idObject

Returns the value of attribute team_id.



64
65
66
# File 'lib/lol/game.rb', line 64

def team_id
  @team_id
end