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.



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

def buckets
  @buckets
end

#field_nameObject

Returns the value of attribute field_name.



307
308
309
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 307

def field_name
  @field_name
end

#nameObject

Returns the value of attribute name.



306
307
308
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 306

def name
  @name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



311
312
313
314
315
316
317
318
319
320
321
322
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 311

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