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, #inspect

Constructor Details

This class inherits a constructor from Lol::Model

Instance Attribute Details

#champion_idFixnum

Returns Champion Id associated with this game.

Returns:

  • (Fixnum)

    Champion Id associated with this game



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

def champion_id
  @champion_id
end

#create_dateTime

Returns Date game was played.

Returns:

  • (Time)

    Date game was played



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

def create_date
  @create_date
end

#fellow_playersArray

Returns list of players associated with this game.

Returns:

  • (Array)

    list of players associated with this game



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

def fellow_players
  @fellow_players
end

#game_idFixnum

Returns Game Id.

Returns:

  • (Fixnum)

    Game Id



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

def game_id
  @game_id
end

#game_modeString

Returns Game Mode.

Returns:

  • (String)

    Game Mode



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

def game_mode
  @game_mode
end

#game_typeString

Returns Game Type.

Returns:

  • (String)

    Game Type



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

def game_type
  @game_type
end

#idFixnum (readonly)

Returns Game Id.

Returns:

  • (Fixnum)

    Game Id



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

attr_reader :game_id

#invalidtrue, false

Returns:

  • (true)

    if the game is invalid

  • (false)

    if the game is valid



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

def invalid
  @invalid
end

#levelFixnum

Returns Level.

Returns:

  • (Fixnum)

    Level



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

def level
  @level
end

#map_idFixnum

Returns Map Id.

Returns:

  • (Fixnum)

    Map Id



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

def map_id
  @map_id
end

#spell1Fixnum

Returns Summoner first spell id.

Returns:

  • (Fixnum)

    Summoner first spell id



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

def spell1
  @spell1
end

#spell2Fixnum

Returns Summoner second spell id.

Returns:

  • (Fixnum)

    Summoner second spell id



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

def spell2
  @spell2
end

#statisticsArray (readonly)

Returns Statistics associated with the game for this summoner.

Returns:

  • (Array)

    Statistics associated with the game for this summoner



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

attr_reader :stats

#statsArray

Returns Statistics associated with the game for this summoner.

Returns:

  • (Array)

    Statistics associated with the game for this summoner



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

def stats
  @stats
end

#sub_typeString

Returns Game sub-type.

Returns:

  • (String)

    Game sub-type



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

def sub_type
  @sub_type
end

#team_idFixnum

Returns Team Id associated with game.

Returns:

  • (Fixnum)

    Team Id associated with game



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

def team_id
  @team_id
end