Class: Kaltura::KalturaOperationResource

Inherits:
KalturaContentResource show all
Defined in:
lib/kaltura_types.rb

Overview

A resource that perform operation (transcoding, clipping, cropping) before the flavor is ready.

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_params_idObject

ID of alternative asset params to be used instead of the system default flavor params



17036
17037
17038
# File 'lib/kaltura_types.rb', line 17036

def asset_params_id
  @asset_params_id
end

#operation_attributesObject

Returns the value of attribute operation_attributes.



17034
17035
17036
# File 'lib/kaltura_types.rb', line 17034

def operation_attributes
  @operation_attributes
end

#resourceObject

Only KalturaEntryResource and KalturaAssetResource are supported



17033
17034
17035
# File 'lib/kaltura_types.rb', line 17033

def resource
  @resource
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
# File 'lib/kaltura_types.rb', line 17042

def from_xml(xml_element)
	super
	if xml_element.elements['resource'] != nil
		self.resource = KalturaClientBase.object_from_xml(xml_element.elements['resource'], 'KalturaContentResource')
	end
	if xml_element.elements['operationAttributes'] != nil
		self.operation_attributes = KalturaClientBase.object_from_xml(xml_element.elements['operationAttributes'], 'KalturaOperationAttributes')
	end
	if xml_element.elements['assetParamsId'] != nil
		self.asset_params_id = xml_element.elements['assetParamsId'].text
	end
end