Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/sightstone/match_history.rb
Instance Attribute Summary collapse
-
#championId ⇒ Object
Returns the value of attribute championId.
-
#summonerId ⇒ Object
Returns the value of attribute summonerId.
-
#teamId ⇒ Object
Returns the value of attribute teamId.
Instance Method Summary collapse
-
#initialize(data) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(data) ⇒ Player
Returns a new instance of Player.
46 47 48 49 50 |
# File 'lib/sightstone/match_history.rb', line 46 def initialize(data) @championId = data['championId'] @summonerId = data['summonerId'] @teamId = data['teamId'] end |
Instance Attribute Details
#championId ⇒ Object
Returns the value of attribute championId.
44 45 46 |
# File 'lib/sightstone/match_history.rb', line 44 def championId @championId end |
#summonerId ⇒ Object
Returns the value of attribute summonerId.
44 45 46 |
# File 'lib/sightstone/match_history.rb', line 44 def summonerId @summonerId end |
#teamId ⇒ Object
Returns the value of attribute teamId.
44 45 46 |
# File 'lib/sightstone/match_history.rb', line 44 def teamId @teamId end |