Class: Rito::Match::Timeline

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/match/timeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiBase

#attributes=, call_api, from_list, from_map, from_map_of_lists

Constructor Details

#initialize(attributes = {}) ⇒ Timeline

Returns a new instance of Timeline


5
6
7
8
# File 'lib/rito/match/timeline.rb', line 5

def initialize(attributes = {})
	self.frames = Rito::Match::Frame.from_list(attributes.delete('frames')) if attributes['frames']
	super
end

Instance Attribute Details

#frameIntervalObject

Returns the value of attribute frameInterval


3
4
5
# File 'lib/rito/match/timeline.rb', line 3

def frameInterval
  @frameInterval
end

#framesObject

Returns the value of attribute frames


3
4
5
# File 'lib/rito/match/timeline.rb', line 3

def frames
  @frames
end