Class: Lol::MatchSummary

Inherits:
Model
  • Object
show all
Defined in:
lib/lol/match_summary.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

#assistsFixnum

Returns Number of assists.

Returns:

  • (Fixnum)

    Number of assists



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

def assists
  @assists
end

#dateTime

Returns Match date.

Returns:

  • (Time)

    Match date



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

def date
  @date
end

#deathsFixnum

Returns Number of deaths.

Returns:

  • (Fixnum)

    Number of deaths



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

def deaths
  @deaths
end

#game_idFixnum

Returns Game Id.

Returns:

  • (Fixnum)

    Game Id



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

def game_id
  @game_id
end

#game_modeString

Returns Game Mode.

Returns:

  • (String)

    Game Mode



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

def game_mode
  @game_mode
end

#invalidtrue, false

Returns:

  • (true)

    If the match is invalid

  • (false)

    If the match is valid



28
29
30
# File 'lib/lol/match_summary.rb', line 28

def invalid
  @invalid
end

#killsFixnum

Returns Number of kills.

Returns:

  • (Fixnum)

    Number of kills



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

def kills
  @kills
end

#map_idFixnum

Returns Map Id.

Returns:

  • (Fixnum)

    Map Id



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

def map_id
  @map_id
end

#opposing_team_killsFixnum

Returns Opposing Team Kills.

Returns:

  • (Fixnum)

    Opposing Team Kills



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

def opposing_team_kills
  @opposing_team_kills
end

#opposing_team_nameString

Returns Opposing Team Name.

Returns:

  • (String)

    Opposing Team Name



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

def opposing_team_name
  @opposing_team_name
end

#wintrue, false

Returns:

  • (true)

    If the team won this match

  • (false)

    If the team lost this match



49
50
51
# File 'lib/lol/match_summary.rb', line 49

def win
  @win
end