Class: Kaltura::KalturaAssetDistributionPropertyCondition
- Inherits:
-
KalturaAssetDistributionCondition
- Object
- KalturaObjectBase
- KalturaAssetDistributionCondition
- Kaltura::KalturaAssetDistributionPropertyCondition
- 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
-
#property_name ⇒ Object
The property name to look for, this will match to a getter on the asset object.
-
#property_value ⇒ Object
The value to compare.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#property_name ⇒ Object
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())
831 832 833 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 831 def property_name @property_name end |
#property_value ⇒ Object
The value to compare
834 835 836 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 834 def property_value @property_value end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
837 838 839 840 841 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 837 def from_xml(xml_element) super self.property_name = xml_element.elements['propertyName'].text self.property_value = xml_element.elements['propertyValue'].text end |