class Kaltura::KalturaAccessControlScope
Attributes
contexts[RW]
Indicates what contexts should be tested. No contexts means any context.
hashes[RW]
Array of hashes to pass to the access control profile scope
ip[RW]
IP to be used to test geographic location conditions.
ks[RW]
Kaltura
session to be used to test session and user conditions.
referrer[RW]
URL to be used to test domain conditions.
time[RW]
Unix timestamp (In seconds) to be used to test entry scheduling, keep null to use now.
user_agent[RW]
Browser or client application to be used to test agent conditions.
Public Instance Methods
from_xml(xml_element)
click to toggle source
Calls superclass method
Kaltura::KalturaObjectBase#from_xml
# File lib/kaltura_types.rb, line 370 def from_xml(xml_element) super if xml_element.elements['referrer'] != nil self.referrer = xml_element.elements['referrer'].text end if xml_element.elements['ip'] != nil self.ip = xml_element.elements['ip'].text end if xml_element.elements['ks'] != nil self.ks = xml_element.elements['ks'].text end if xml_element.elements['userAgent'] != nil self.user_agent = xml_element.elements['userAgent'].text end if xml_element.elements['time'] != nil self.time = xml_element.elements['time'].text end if xml_element.elements['contexts'] != nil self.contexts = KalturaClientBase.object_from_xml(xml_element.elements['contexts'], 'KalturaAccessControlContextTypeHolder') end if xml_element.elements['hashes'] != nil self.hashes = KalturaClientBase.object_from_xml(xml_element.elements['hashes'], 'KalturaKeyValue') end end
time=(val)
click to toggle source
# File lib/kaltura_types.rb, line 366 def time=(val) @time = val.to_i end