class Twilio::REST::Voice::V1::DialingPermissionsList

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

Public Class Methods

new(version) click to toggle source

Initialize the DialingPermissionsList @param [Version] version Version that contains the resource @return [DialingPermissionsList] DialingPermissionsList

Calls superclass method Twilio::REST::ListResource::new
   # File lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
20 def initialize(version)
21   super(version)
22 
23   # Path Solution
24   @solution = {}
25 
26   # Components
27   @countries = nil
28   @settings = nil
29   @bulk_country_updates = nil
30 end

Public Instance Methods

bulk_country_updates() click to toggle source

Access the bulk_country_updates @return [BulkCountryUpdateList] @return [BulkCountryUpdateContext]

   # File lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
60 def bulk_country_updates
61   @bulk_country_updates ||= BulkCountryUpdateList.new(@version, )
62 end
countries(iso_code=:unset) click to toggle source

Access the countries @param [String] iso_code The {ISO country

code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the
DialingPermissions Country resource to fetch

@return [CountryList] @return [CountryContext] if iso_code was passed.

   # File lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
39 def countries(iso_code=:unset)
40   raise ArgumentError, 'iso_code cannot be nil' if iso_code.nil?
41 
42   if iso_code != :unset
43     return CountryContext.new(@version, iso_code, )
44   end
45 
46     @countries ||= CountryList.new(@version, )
47 end
settings() click to toggle source

Access the settings @return [SettingsContext] SettingsContext

   # File lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
52 def settings
53   return SettingsContext.new(@version, )
54 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
66 def to_s
67   '#<Twilio.Voice.V1.DialingPermissionsList>'
68 end