Class: Kaltura::KalturaAssetDistributionPropertyCondition

Inherits:
KalturaAssetDistributionCondition show all
Defined in:
lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb

Overview

Defines the condition to match a property and value on core asset object (or one if its inherited objects)

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

#property_nameObject

The property name to look for, this will match to a getter on the asset object. Should be camelCase naming convention (defining “myPropertyName” will look for getMyPropertyName())



1050
1051
1052
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1050

def property_name
  @property_name
end

#property_valueObject

The value to compare



1052
1053
1054
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1052

def property_value
  @property_value
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1055
1056
1057
1058
1059
1060
1061
1062
1063
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1055

def from_xml(xml_element)
	super
	if xml_element.elements['propertyName'] != nil
		self.property_name = xml_element.elements['propertyName'].text
	end
	if xml_element.elements['propertyValue'] != nil
		self.property_value = xml_element.elements['propertyValue'].text
	end
end