Class: Kaltura::KalturaESearchCaptionItemData

Inherits:
KalturaESearchItemData show all
Defined in:
lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaESearchItemData

#highlight

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#caption_asset_idObject

Returns the value of attribute caption_asset_id.



618
619
620
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 618

def caption_asset_id
  @caption_asset_id
end

#ends_atObject

Returns the value of attribute ends_at.



616
617
618
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 616

def ends_at
  @ends_at
end

#labelObject

Returns the value of attribute label.



619
620
621
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 619

def label
  @label
end

#languageObject

Returns the value of attribute language.



617
618
619
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 617

def language
  @language
end

#lineObject

Returns the value of attribute line.



614
615
616
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 614

def line
  @line
end

#starts_atObject

Returns the value of attribute starts_at.



615
616
617
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 615

def starts_at
  @starts_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 628

def from_xml(xml_element)
	super
	if xml_element.elements['line'] != nil
		self.line = xml_element.elements['line'].text
	end
	if xml_element.elements['startsAt'] != nil
		self.starts_at = xml_element.elements['startsAt'].text
	end
	if xml_element.elements['endsAt'] != nil
		self.ends_at = xml_element.elements['endsAt'].text
	end
	if xml_element.elements['language'] != nil
		self.language = xml_element.elements['language'].text
	end
	if xml_element.elements['captionAssetId'] != nil
		self.caption_asset_id = xml_element.elements['captionAssetId'].text
	end
	if xml_element.elements['label'] != nil
		self.label = xml_element.elements['label'].text
	end
end