Class: Kaltura::KalturaESearchItemDataResult

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

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

#itemsObject

Returns the value of attribute items.



379
380
381
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 379

def items
  @items
end

#items_typeObject

Returns the value of attribute items_type.



380
381
382
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 380

def items_type
  @items_type
end

#total_countObject

Returns the value of attribute total_count.



378
379
380
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 378

def total_count
  @total_count
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



386
387
388
389
390
391
392
393
394
395
396
397
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 386

def from_xml(xml_element)
	super
	if xml_element.elements['totalCount'] != nil
		self.total_count = xml_element.elements['totalCount'].text
	end
	if xml_element.elements['items'] != nil
		self.items = KalturaClientBase.object_from_xml(xml_element.elements['items'], 'KalturaESearchItemData')
	end
	if xml_element.elements['itemsType'] != nil
		self.items_type = xml_element.elements['itemsType'].text
	end
end