Class: Sightstone::Player
- Inherits:
-
Object
- Object
- Sightstone::Player
- Defined in:
- lib/sightstone/match_history.rb
Overview
player of a game
Instance Attribute Summary collapse
-
#championId ⇒ Fixnum
ID of played Champion.
-
#summonerId ⇒ Fixnum
ID of the summoner.
-
#teamId ⇒ Object
Returns the value of attribute teamId.
-
#teammId ⇒ Fixnum
ID of the team.
Instance Method Summary collapse
-
#initialize(data) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(data) ⇒ Player
Returns a new instance of Player.
69 70 71 72 73 |
# File 'lib/sightstone/match_history.rb', line 69 def initialize(data) @championId = data['championId'] @summonerId = data['summonerId'] @teamId = data['teamId'] end |
Instance Attribute Details
#championId ⇒ Fixnum
ID of played Champion
66 67 68 |
# File 'lib/sightstone/match_history.rb', line 66 def championId @championId end |
#summonerId ⇒ Fixnum
ID of the summoner
66 67 68 |
# File 'lib/sightstone/match_history.rb', line 66 def summonerId @summonerId end |
#teamId ⇒ Object
Returns the value of attribute teamId.
67 68 69 |
# File 'lib/sightstone/match_history.rb', line 67 def teamId @teamId end |
#teammId ⇒ Fixnum
ID of the team
66 67 68 |
# File 'lib/sightstone/match_history.rb', line 66 def teammId @teammId end |