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())



1037
1038
1039
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1037

def property_name
  @property_name
end

#property_valueObject

The value to compare



1039
1040
1041
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1039

def property_value
  @property_value
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1042
1043
1044
1045
1046
1047
1048
1049
1050
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1042

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