Class: Kaltura::KalturaDrmPolicy

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

Direct Known Subclasses

KalturaPlayReadyPolicy

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

#created_atObject

Returns the value of attribute created_at.



124
125
126
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 124

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



116
117
118
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 116

def description
  @description
end

#durationObject

Duration in days the license is effective



123
124
125
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 123

def duration
  @duration
end

#idObject

Returns the value of attribute id.



112
113
114
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 112

def id
  @id
end

#license_expiration_policyObject

Returns the value of attribute license_expiration_policy.



121
122
123
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 121

def license_expiration_policy
  @license_expiration_policy
end

#license_paramsObject

Returns the value of attribute license_params.



126
127
128
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 126

def license_params
  @license_params
end

#license_typeObject

Returns the value of attribute license_type.



120
121
122
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 120

def license_type
  @license_type
end

#nameObject

Returns the value of attribute name.



114
115
116
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 114

def name
  @name
end

#partner_idObject

Returns the value of attribute partner_id.



113
114
115
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 113

def partner_id
  @partner_id
end

#providerObject

Returns the value of attribute provider.



117
118
119
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 117

def provider
  @provider
end

#scenarioObject

Returns the value of attribute scenario.



119
120
121
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 119

def scenario
  @scenario
end

#statusObject

Returns the value of attribute status.



118
119
120
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 118

def status
  @status
end

#system_nameObject

Returns the value of attribute system_name.



115
116
117
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 115

def system_name
  @system_name
end

#updated_atObject

Returns the value of attribute updated_at.



125
126
127
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 125

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 150

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['systemName'] != nil
		self.system_name = xml_element.elements['systemName'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
	if xml_element.elements['provider'] != nil
		self.provider = xml_element.elements['provider'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['scenario'] != nil
		self.scenario = xml_element.elements['scenario'].text
	end
	if xml_element.elements['licenseType'] != nil
		self.license_type = xml_element.elements['licenseType'].text
	end
	if xml_element.elements['licenseExpirationPolicy'] != nil
		self.license_expiration_policy = xml_element.elements['licenseExpirationPolicy'].text
	end
	if xml_element.elements['duration'] != nil
		self.duration = xml_element.elements['duration'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['licenseParams'] != nil
		self.license_params = KalturaClientBase.object_from_xml(xml_element.elements['licenseParams'], 'KalturaKeyValue')
	end
end