Class: Kaltura::KalturaAccessControlScope
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaAccessControlScope
- Defined in:
- lib/kaltura_types.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#contexts ⇒ Object
Indicates what contexts should be tested.
-
#hashes ⇒ Object
Array of hashes to pass to the access control profile scope.
-
#ip ⇒ Object
IP to be used to test geographic location conditions.
-
#ks ⇒ Object
Kaltura session to be used to test session and user conditions.
-
#referrer ⇒ Object
URL to be used to test domain conditions.
-
#time ⇒ Object
Unix timestamp (In seconds) to be used to test entry scheduling, keep null to use now.
-
#user_agent ⇒ Object
Browser or client application to be used to test agent conditions.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#contexts ⇒ Object
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 |
#hashes ⇒ Object
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 |
#ip ⇒ Object
IP to be used to test geographic location conditions.
279 280 281 |
# File 'lib/kaltura_types.rb', line 279 def ip @ip end |
#ks ⇒ Object
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 |
#referrer ⇒ Object
URL to be used to test domain conditions.
276 277 278 |
# File 'lib/kaltura_types.rb', line 276 def referrer @referrer end |
#time ⇒ Object
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_agent ⇒ Object
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 |