Class: Kaltura::KalturaESearchAggregationResponseItem
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaESearchAggregationResponseItem
- Defined in:
- lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb
Instance Attribute Summary collapse
-
#buckets ⇒ Object
Returns the value of attribute buckets.
-
#field_name ⇒ Object
Returns the value of attribute field_name.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#buckets ⇒ Object
Returns the value of attribute buckets.
321 322 323 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 321 def buckets @buckets end |
#field_name ⇒ Object
Returns the value of attribute field_name.
320 321 322 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 320 def field_name @field_name end |
#name ⇒ Object
Returns the value of attribute name.
319 320 321 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 319 def name @name end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 324 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 |