Class: Sightstone::Player

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

Overview

player of a game

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#championIdFixnum

ID of played Champion

Returns:

  • (Fixnum)

    the current value of championId



66
67
68
# File 'lib/sightstone/match_history.rb', line 66

def championId
  @championId
end

#summonerIdFixnum

ID of the summoner

Returns:

  • (Fixnum)

    the current value of summonerId



66
67
68
# File 'lib/sightstone/match_history.rb', line 66

def summonerId
  @summonerId
end

#teamIdObject

Returns the value of attribute teamId.



67
68
69
# File 'lib/sightstone/match_history.rb', line 67

def teamId
  @teamId
end

#teammIdFixnum

ID of the team

Returns:

  • (Fixnum)

    the current value of teammId



66
67
68
# File 'lib/sightstone/match_history.rb', line 66

def teammId
  @teammId
end