Class: Kaltura::KalturaCountryRestriction

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

#country_listObject

Comma separated list of country codes to allow to deny



12594
12595
12596
# File 'lib/kaltura_types.rb', line 12594

def country_list
  @country_list
end

#country_restriction_typeObject

Country restriction type (Allow or deny)



12592
12593
12594
# File 'lib/kaltura_types.rb', line 12592

def country_restriction_type
  @country_restriction_type
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



12600
12601
12602
12603
12604
12605
12606
12607
12608
# File 'lib/kaltura_types.rb', line 12600

def from_xml(xml_element)
	super
	if xml_element.elements['countryRestrictionType'] != nil
		self.country_restriction_type = xml_element.elements['countryRestrictionType'].text
	end
	if xml_element.elements['countryList'] != nil
		self.country_list = xml_element.elements['countryList'].text
	end
end