class LolApi::TimelineData
Attributes
raw_data[R]
Public Class Methods
new(raw_data)
click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 389 def initialize(raw_data) @raw_data = raw_data end
Public Instance Methods
chart()
click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 409 def chart [ :zero_to_ten => zero_to_ten, :ten_to_twenty => ten_to_twenty, :twenty_to_thirty => twenty_to_thirty, :thirty_to_end => thirty_to_end ] end
ten_to_twenty()
click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 393 def ten_to_twenty raw_data['tenToTwenty'].round(2) end
thirty_to_end()
click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 397 def thirty_to_end raw_data['thirtyToEnd'].round(2) end
twenty_to_thirty()
click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 401 def twenty_to_thirty raw_data['twentyToThirty'].round(2) end
zero_to_ten()
click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 405 def zero_to_ten raw_data['zeroToTen'].round(2) end