Class: Kaltura::KalturaESearchCategoryUserItem

Inherits:
KalturaESearchAbstractCategoryItem show all
Defined in:
lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaESearchAbstractCategoryItem

#add_highlight, #item_type, #range, #search_term

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.



1227
1228
1229
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1227

def field_name
  @field_name
end

#permission_levelObject

Returns the value of attribute permission_level.



1228
1229
1230
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1228

def permission_level
  @permission_level
end

#permission_nameObject

Returns the value of attribute permission_name.



1229
1230
1231
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1229

def permission_name
  @permission_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1235

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['permissionLevel'] != nil
    self.permission_level = xml_element.elements['permissionLevel'].text
  end
  if xml_element.elements['permissionName'] != nil
    self.permission_name = xml_element.elements['permissionName'].text
  end
end