class Kaltura::KalturaDrmPolicy

Attributes

created_at[RW]
description[RW]
duration[RW]

Duration in days the license is effective

id[RW]
license_expiration_policy[RW]
license_params[RW]
license_type[RW]
name[RW]
partner_id[RW]
provider[RW]
scenario[RW]
status[RW]
system_name[RW]
updated_at[RW]

Public Instance Methods

created_at=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 143
def created_at=(val)
        @created_at = val.to_i
end
duration=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 140
def duration=(val)
        @duration = val.to_i
end
from_xml(xml_element) click to toggle source
Calls superclass method Kaltura::KalturaObjectBase#from_xml
# 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
id=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 128
def id=(val)
        @id = val.to_i
end
license_expiration_policy=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 137
def license_expiration_policy=(val)
        @license_expiration_policy = val.to_i
end
partner_id=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 131
def partner_id=(val)
        @partner_id = val.to_i
end
status=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 134
def status=(val)
        @status = val.to_i
end
updated_at=(val) click to toggle source
# File lib/kaltura_plugins/kaltura_drm_client_plugin.rb, line 146
def updated_at=(val)
        @updated_at = val.to_i
end