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.



362
363
364
# File 'lib/kaltura_types.rb', line 362

def contexts
  @contexts
end

#hashesObject

Array of hashes to pass to the access control profile scope



364
365
366
# File 'lib/kaltura_types.rb', line 364

def hashes
  @hashes
end

#ipObject

IP to be used to test geographic location conditions.



354
355
356
# File 'lib/kaltura_types.rb', line 354

def ip
  @ip
end

#ksObject

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



356
357
358
# File 'lib/kaltura_types.rb', line 356

def ks
  @ks
end

#referrerObject

URL to be used to test domain conditions.



352
353
354
# File 'lib/kaltura_types.rb', line 352

def referrer
  @referrer
end

#timeObject

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



360
361
362
# File 'lib/kaltura_types.rb', line 360

def time
  @time
end

#user_agentObject

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



358
359
360
# File 'lib/kaltura_types.rb', line 358

def user_agent
  @user_agent
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# 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