class LolApi::Frame
Attributes
raw_frame[R]
Public Class Methods
new(raw_frame)
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 23 def initialize(raw_frame) @raw_frame = raw_frame end
Public Instance Methods
events()
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 27 def events if events = @raw_frame['events'] events.map { |x| Event.new(x) } else [] end end
participant_frames()
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 35 def participant_frames if frames = @raw_frame['participantFrames'] frames.map{|x| ParticipantFrame.new(x[1])} else [] end end
timestamp()
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 43 def timestamp @raw_frame['timestamp'] end