Class: Kaltura::KalturaESearchAggregationResponseItem

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

#bucketsObject

Returns the value of attribute buckets.



311
312
313
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 311

def buckets
  @buckets
end

#field_nameObject

Returns the value of attribute field_name.



310
311
312
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 310

def field_name
  @field_name
end

#nameObject

Returns the value of attribute name.



309
310
311
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 309

def name
  @name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



314
315
316
317
318
319
320
321
322
323
324
325
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 314

def from_xml(xml_element)
	super
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['fieldName'] != nil
		self.field_name = xml_element.elements['fieldName'].text
	end
	if xml_element.elements['buckets'] != nil
		self.buckets = KalturaClientBase.object_from_xml(xml_element.elements['buckets'], 'KalturaESearchAggregationBucket')
	end
end