Class: Kaltura::KalturaESearchEntryAbstractNestedItem
- Inherits:
-
KalturaESearchEntryNestedBaseItem
- Object
- KalturaObjectBase
- KalturaESearchBaseItem
- KalturaESearchEntryBaseItem
- KalturaESearchEntryBaseNestedObject
- KalturaESearchEntryNestedBaseItem
- Kaltura::KalturaESearchEntryAbstractNestedItem
- Defined in:
- lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb
Direct Known Subclasses
KalturaESearchCaptionItem, KalturaESearchCuePointItem, KalturaESearchEntryMetadataItem
Instance Attribute Summary collapse
-
#add_highlight ⇒ Object
Returns the value of attribute add_highlight.
-
#item_type ⇒ Object
Returns the value of attribute item_type.
-
#range ⇒ Object
Returns the value of attribute range.
-
#search_term ⇒ Object
Returns the value of attribute search_term.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#add_highlight ⇒ Object
Returns the value of attribute add_highlight.
1175 1176 1177 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1175 def add_highlight @add_highlight end |
#item_type ⇒ Object
Returns the value of attribute item_type.
1173 1174 1175 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1173 def item_type @item_type end |
#range ⇒ Object
Returns the value of attribute range.
1174 1175 1176 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1174 def range @range end |
#search_term ⇒ Object
Returns the value of attribute search_term.
1172 1173 1174 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1172 def search_term @search_term end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1184 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 |