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.



385
386
387
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 385

def items
  @items
end

#items_typeObject

Returns the value of attribute items_type.



386
387
388
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 386

def items_type
  @items_type
end

#total_countObject

Returns the value of attribute total_count.



384
385
386
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 384

def total_count
  @total_count
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



392
393
394
395
396
397
398
399
400
401
402
403
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 392

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