Class: Kaltura::KalturaESearchHighlight
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaESearchHighlight
- Defined in:
- lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb
Instance Attribute Summary collapse
-
#field_name ⇒ Object
Returns the value of attribute field_name.
-
#hits ⇒ Object
Returns the value of attribute hits.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#field_name ⇒ Object
Returns the value of attribute field_name.
358 359 360 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 358 def field_name @field_name end |
#hits ⇒ Object
Returns the value of attribute hits.
359 360 361 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 359 def hits @hits end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
362 363 364 365 366 367 368 369 370 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 362 def from_xml(xml_element) super if xml_element.elements['fieldName'] != nil self.field_name = xml_element.elements['fieldName'].text end if xml_element.elements['hits'] != nil self.hits = KalturaClientBase.object_from_xml(xml_element.elements['hits'], 'KalturaString') end end |