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())
1058 1059 1060 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1058 def property_name @property_name end |
#property_value ⇒ Object
The value to compare
1060 1061 1062 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1060 def property_value @property_value end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
1063 1064 1065 1066 1067 1068 1069 1070 1071 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1063 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 |