Class: Player

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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