Class: Kaltura::KalturaAssetDistributionRule

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

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

#asset_distribution_conditionsObject

An array of asset distribution conditions



229
230
231
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 229

def asset_distribution_conditions
  @asset_distribution_conditions
end

#validation_errorObject

The validation error description that will be set on the “data” property on KalturaDistributionValidationErrorMissingAsset if rule was not fulfilled



227
228
229
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 227

def validation_error
  @validation_error
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



232
233
234
235
236
237
238
239
240
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 232

def from_xml(xml_element)
	super
	if xml_element.elements['validationError'] != nil
		self.validation_error = xml_element.elements['validationError'].text
	end
	if xml_element.elements['assetDistributionConditions'] != nil
		self.asset_distribution_conditions = KalturaClientBase.object_from_xml(xml_element.elements['assetDistributionConditions'], 'KalturaAssetDistributionCondition')
	end
end