Class: Kaltura::KalturaESearchEntryAbstractNestedItem

Inherits:
KalturaESearchEntryNestedBaseItem 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

#add_highlightObject

Returns the value of attribute add_highlight.



1359
1360
1361
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1359

def add_highlight
  @add_highlight
end

#item_typeObject

Returns the value of attribute item_type.



1357
1358
1359
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1357

def item_type
  @item_type
end

#rangeObject

Returns the value of attribute range.



1358
1359
1360
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1358

def range
  @range
end

#search_termObject

Returns the value of attribute search_term.



1356
1357
1358
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1356

def search_term
  @search_term
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1368

def from_xml(xml_element)
	super
	if xml_element.elements['searchTerm'] != nil
		self.search_term = xml_element.elements['searchTerm'].text
	end
	if xml_element.elements['itemType'] != nil
		self.item_type = xml_element.elements['itemType'].text
	end
	if xml_element.elements['range'] != nil
		self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange')
	end
	if xml_element.elements['addHighlight'] != nil
		self.add_highlight = xml_element.elements['addHighlight'].text
	end
end