Class: Rito::Match::Frame

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/match/frame.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 = {}) ⇒ Frame

Returns a new instance of Frame


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

def initialize(attributes = {})
	self.events = Rito::Match::Event.from_list(attributes.delete('events')) if attributes['events']
	self.participantFrames = Rito::Match::ParticipantFrame.from_map(attributes.delete('participantFrames')) if attributes['participantFrames']
	super
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events


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

def events
  @events
end

#participantFramesObject

Returns the value of attribute participantFrames


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

def participantFrames
  @participantFrames
end

#timestampObject

Returns the value of attribute timestamp


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

def timestamp
  @timestamp
end