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.



286
287
288
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 286

def items
  @items
end

#items_typeObject

Returns the value of attribute items_type.



287
288
289
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 287

def items_type
  @items_type
end

#total_countObject

Returns the value of attribute total_count.



285
286
287
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 285

def total_count
  @total_count
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 293

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