Class: Kaltura::KalturaAccessControlScope

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Direct Known Subclasses

KalturaEntryContextDataParams

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

#contextsObject

Indicates what contexts should be tested. No contexts means any context.



291
292
293
# File 'lib/kaltura_types.rb', line 291

def contexts
  @contexts
end

#hashesObject

Array of hashes to pass to the access control profile scope



294
295
296
# File 'lib/kaltura_types.rb', line 294

def hashes
  @hashes
end

#ipObject

IP to be used to test geographic location conditions.



279
280
281
# File 'lib/kaltura_types.rb', line 279

def ip
  @ip
end

#ksObject

Kaltura session to be used to test session and user conditions.



282
283
284
# File 'lib/kaltura_types.rb', line 282

def ks
  @ks
end

#referrerObject

URL to be used to test domain conditions.



276
277
278
# File 'lib/kaltura_types.rb', line 276

def referrer
  @referrer
end

#timeObject

Unix timestamp (In seconds) to be used to test entry scheduling, keep null to use now.



288
289
290
# File 'lib/kaltura_types.rb', line 288

def time
  @time
end

#user_agentObject

Browser or client application to be used to test agent conditions.



285
286
287
# File 'lib/kaltura_types.rb', line 285

def user_agent
  @user_agent
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



300
301
302
303
304
305
306
307
308
309
# File 'lib/kaltura_types.rb', line 300

def from_xml(xml_element)
	super
	self.referrer = xml_element.elements['referrer'].text
	self.ip = xml_element.elements['ip'].text
	self.ks = xml_element.elements['ks'].text
	self.user_agent = xml_element.elements['userAgent'].text
	self.time = xml_element.elements['time'].text
	self.contexts = KalturaClientBase.object_from_xml(xml_element.elements['contexts'], 'KalturaAccessControlContextTypeHolder')
	self.hashes = KalturaClientBase.object_from_xml(xml_element.elements['hashes'], 'KalturaKeyValue')
end