Class: Kaltura::KalturaUserAgentRestriction

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

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

#user_agent_regex_listObject

A comma seperated list of user agent regular expressions



15325
15326
15327
# File 'lib/kaltura_types.rb', line 15325

def user_agent_regex_list
  @user_agent_regex_list
end

#user_agent_restriction_typeObject

User agent restriction type (Allow or deny)



15323
15324
15325
# File 'lib/kaltura_types.rb', line 15323

def user_agent_restriction_type
  @user_agent_restriction_type
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



15331
15332
15333
15334
15335
15336
15337
15338
15339
# File 'lib/kaltura_types.rb', line 15331

def from_xml(xml_element)
	super
	if xml_element.elements['userAgentRestrictionType'] != nil
		self.user_agent_restriction_type = xml_element.elements['userAgentRestrictionType'].text
	end
	if xml_element.elements['userAgentRegexList'] != nil
		self.user_agent_regex_list = xml_element.elements['userAgentRegexList'].text
	end
end