Class: Player

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/match_history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#championIdObject

Returns the value of attribute championId.



44
45
46
# File 'lib/sightstone/match_history.rb', line 44

def championId
  @championId
end

#summonerIdObject

Returns the value of attribute summonerId.



44
45
46
# File 'lib/sightstone/match_history.rb', line 44

def summonerId
  @summonerId
end

#teamIdObject

Returns the value of attribute teamId.



44
45
46
# File 'lib/sightstone/match_history.rb', line 44

def teamId
  @teamId
end