Class: Kaltura::KalturaCategoryEntryCondition

Inherits:
KalturaCondition show all
Defined in:
lib/kaltura_plugins/kaltura_reach_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaCondition

#description, #not, #type

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#category_idObject

Category id to check condition for



836
837
838
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 836

def category_id
  @category_id
end

#category_idsObject

Category id’s to check condition for



838
839
840
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 838

def category_ids
  @category_ids
end

#category_user_permissionObject

Minimum category user level permission to validate



840
841
842
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 840

def category_user_permission
  @category_user_permission
end

#comparisonObject

Comparing operator



842
843
844
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 842

def comparison
  @comparison
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 851

def from_xml(xml_element)
	super
	if xml_element.elements['categoryId'] != nil
		self.category_id = xml_element.elements['categoryId'].text
	end
	if xml_element.elements['categoryIds'] != nil
		self.category_ids = xml_element.elements['categoryIds'].text
	end
	if xml_element.elements['categoryUserPermission'] != nil
		self.category_user_permission = xml_element.elements['categoryUserPermission'].text
	end
	if xml_element.elements['comparison'] != nil
		self.comparison = xml_element.elements['comparison'].text
	end
end