Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/sightstone/match_history.rb
Instance Attribute Summary (collapse)
-
- (Object) championId
Returns the value of attribute championId.
-
- (Object) summonerId
Returns the value of attribute summonerId.
-
- (Object) teamId
Returns the value of attribute teamId.
Instance Method Summary (collapse)
-
- (Player) initialize(data)
constructor
A new instance of Player.
Constructor Details
- (Player) initialize(data)
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
- (Object) championId
Returns the value of attribute championId
44 45 46 |
# File 'lib/sightstone/match_history.rb', line 44 def championId @championId end |
- (Object) summonerId
Returns the value of attribute summonerId
44 45 46 |
# File 'lib/sightstone/match_history.rb', line 44 def summonerId @summonerId end |
- (Object) teamId
Returns the value of attribute teamId
44 45 46 |
# File 'lib/sightstone/match_history.rb', line 44 def teamId @teamId end |