Class: Kaltura::KalturaESearchHighlight

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

#field_nameObject

Returns the value of attribute field_name.



353
354
355
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 353

def field_name
  @field_name
end

#hitsObject

Returns the value of attribute hits.



354
355
356
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 354

def hits
  @hits
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



357
358
359
360
361
362
363
364
365
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 357

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