Class: Kaltura::KalturaPlayReadyPolicy

Inherits:
KalturaDrmPolicy show all
Defined in:
lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaDrmPolicy

#created_at, #description, #duration, #id, #license_expiration_policy, #license_params, #license_type, #name, #partner_id, #provider, #scenario, #status, #system_name, #updated_at

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#grace_periodObject

Returns the value of attribute grace_period.



188
189
190
# File 'lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb', line 188

def grace_period
  @grace_period
end

#license_removal_durationObject

Returns the value of attribute license_removal_duration.



190
191
192
# File 'lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb', line 190

def license_removal_duration
  @license_removal_duration
end

#license_removal_policyObject

Returns the value of attribute license_removal_policy.



189
190
191
# File 'lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb', line 189

def license_removal_policy
  @license_removal_policy
end

#min_security_levelObject

Returns the value of attribute min_security_level.



191
192
193
# File 'lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb', line 191

def min_security_level
  @min_security_level
end

#rightsObject

Returns the value of attribute rights.



192
193
194
# File 'lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb', line 192

def rights
  @rights
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# File 'lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb', line 207

def from_xml(xml_element)
	super
	if xml_element.elements['gracePeriod'] != nil
		self.grace_period = xml_element.elements['gracePeriod'].text
	end
	if xml_element.elements['licenseRemovalPolicy'] != nil
		self.license_removal_policy = xml_element.elements['licenseRemovalPolicy'].text
	end
	if xml_element.elements['licenseRemovalDuration'] != nil
		self.license_removal_duration = xml_element.elements['licenseRemovalDuration'].text
	end
	if xml_element.elements['minSecurityLevel'] != nil
		self.min_security_level = xml_element.elements['minSecurityLevel'].text
	end
	if xml_element.elements['rights'] != nil
		self.rights = KalturaClientBase.object_from_xml(xml_element.elements['rights'], 'KalturaPlayReadyRight')
	end
end