Class: Kaltura::KalturaDrmPolicy
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaDrmPolicy
- Defined in:
- lib/kaltura_plugins/kaltura_drm_client_plugin.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#duration ⇒ Object
Duration in days the license is effective.
-
#id ⇒ Object
Returns the value of attribute id.
-
#license_expiration_policy ⇒ Object
Returns the value of attribute license_expiration_policy.
-
#license_params ⇒ Object
Returns the value of attribute license_params.
-
#license_type ⇒ Object
Returns the value of attribute license_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#scenario ⇒ Object
Returns the value of attribute scenario.
-
#status ⇒ Object
Returns the value of attribute status.
-
#system_name ⇒ Object
Returns the value of attribute system_name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
125 126 127 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 125 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
117 118 119 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 117 def description @description end |
#duration ⇒ Object
Duration in days the license is effective
124 125 126 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 124 def duration @duration end |
#id ⇒ Object
Returns the value of attribute id.
113 114 115 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 113 def id @id end |
#license_expiration_policy ⇒ Object
Returns the value of attribute license_expiration_policy.
122 123 124 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 122 def license_expiration_policy @license_expiration_policy end |
#license_params ⇒ Object
Returns the value of attribute license_params.
127 128 129 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 127 def license_params @license_params end |
#license_type ⇒ Object
Returns the value of attribute license_type.
121 122 123 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 121 def license_type @license_type end |
#name ⇒ Object
Returns the value of attribute name.
115 116 117 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 115 def name @name end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
114 115 116 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 114 def partner_id @partner_id end |
#provider ⇒ Object
Returns the value of attribute provider.
118 119 120 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 118 def provider @provider end |
#scenario ⇒ Object
Returns the value of attribute scenario.
120 121 122 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 120 def scenario @scenario end |
#status ⇒ Object
Returns the value of attribute status.
119 120 121 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 119 def status @status end |
#system_name ⇒ Object
Returns the value of attribute system_name.
116 117 118 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 116 def system_name @system_name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
126 127 128 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 126 def updated_at @updated_at end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
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 195 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 151 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 |