Class: LolApi::ParticipantFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_api/types/dtos/timeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_frame) ⇒ ParticipantFrame

Returns a new instance of ParticipantFrame.



135
136
137
# File 'lib/lol_api/types/dtos/timeline.rb', line 135

def initialize(raw_frame)
	@raw_frame = raw_frame
end

Instance Attribute Details

#raw_frameObject (readonly)

Returns the value of attribute raw_frame.



133
134
135
# File 'lib/lol_api/types/dtos/timeline.rb', line 133

def raw_frame
  @raw_frame
end

Instance Method Details

#current_goldObject



139
140
141
# File 'lib/lol_api/types/dtos/timeline.rb', line 139

def current_gold
	@raw_frame['currentGold']
end

#jungle_minions_killedObject



143
144
145
# File 'lib/lol_api/types/dtos/timeline.rb', line 143

def jungle_minions_killed
	@raw_frame['jungleMinionsKilled']
end

#levelObject



147
148
149
# File 'lib/lol_api/types/dtos/timeline.rb', line 147

def level
	@raw_frame['level']
end

#minions_killedObject



151
152
153
# File 'lib/lol_api/types/dtos/timeline.rb', line 151

def minions_killed
	@raw_frame['minionsKilled']
end

#participant_idObject



155
156
157
# File 'lib/lol_api/types/dtos/timeline.rb', line 155

def participant_id
	@raw_frame['participantId']
end

#positionObject



159
160
161
# File 'lib/lol_api/types/dtos/timeline.rb', line 159

def position
	Position.new(@raw_frame['position'])
end

#total_goldObject



163
164
165
# File 'lib/lol_api/types/dtos/timeline.rb', line 163

def total_gold
	@raw_frame['totalGold']
end

#xpObject



167
168
169
# File 'lib/lol_api/types/dtos/timeline.rb', line 167

def xp
	@raw_frame['xp']
end