Class: Kaltura::KalturaLiveStats

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Direct Known Subclasses

KalturaEntryLiveStats

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#audienceObject

Returns the value of attribute audience.



6917
6918
6919
# File 'lib/kaltura_types.rb', line 6917

def audience
  @audience
end

#avg_bitrateObject

Returns the value of attribute avg_bitrate.



6919
6920
6921
# File 'lib/kaltura_types.rb', line 6919

def avg_bitrate
  @avg_bitrate
end

#buffer_timeObject

Returns the value of attribute buffer_time.



6920
6921
6922
# File 'lib/kaltura_types.rb', line 6920

def buffer_time
  @buffer_time
end

#dvr_audienceObject

Returns the value of attribute dvr_audience.



6918
6919
6920
# File 'lib/kaltura_types.rb', line 6918

def dvr_audience
  @dvr_audience
end

#playsObject

Returns the value of attribute plays.



6921
6922
6923
# File 'lib/kaltura_types.rb', line 6921

def plays
  @plays
end

#seconds_viewedObject

Returns the value of attribute seconds_viewed.



6922
6923
6924
# File 'lib/kaltura_types.rb', line 6922

def seconds_viewed
  @seconds_viewed
end

#start_eventObject

Returns the value of attribute start_event.



6923
6924
6925
# File 'lib/kaltura_types.rb', line 6923

def start_event
  @start_event
end

#timestampObject

Returns the value of attribute timestamp.



6924
6925
6926
# File 'lib/kaltura_types.rb', line 6924

def timestamp
  @timestamp
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
# File 'lib/kaltura_types.rb', line 6951

def from_xml(xml_element)
	super
	if xml_element.elements['audience'] != nil
		self.audience = xml_element.elements['audience'].text
	end
	if xml_element.elements['dvrAudience'] != nil
		self.dvr_audience = xml_element.elements['dvrAudience'].text
	end
	if xml_element.elements['avgBitrate'] != nil
		self.avg_bitrate = xml_element.elements['avgBitrate'].text
	end
	if xml_element.elements['bufferTime'] != nil
		self.buffer_time = xml_element.elements['bufferTime'].text
	end
	if xml_element.elements['plays'] != nil
		self.plays = xml_element.elements['plays'].text
	end
	if xml_element.elements['secondsViewed'] != nil
		self.seconds_viewed = xml_element.elements['secondsViewed'].text
	end
	if xml_element.elements['startEvent'] != nil
		self.start_event = xml_element.elements['startEvent'].text
	end
	if xml_element.elements['timestamp'] != nil
		self.timestamp = xml_element.elements['timestamp'].text
	end
end