class LolApi::Timeline
Attributes
raw_timeline[R]
Public Class Methods
new(raw_timeline)
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 5 def initialize(raw_timeline) @raw_timeline = raw_timeline end
Public Instance Methods
frames()
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 13 def frames if frames = @raw_timeline['frames'] frames.map { |x| Frame.new(x) } end end
interval()
click to toggle source
# File lib/lol_api/types/dtos/timeline.rb, line 9 def interval @raw_timeline['frameInterval'] end