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

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, payload) click to toggle source

Initialize the BulkCountryUpdateInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @return [BulkCountryUpdateInstance] BulkCountryUpdateInstance

Calls superclass method Twilio::REST::InstanceResource::new
   # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
90 def initialize(version, payload)
91   super(version)
92 
93   # Marshaled Properties
94   @properties = {
95       'update_count' => payload['update_count'].to_i,
96       'update_request' => payload['update_request'],
97   }
98 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
120 def inspect
121   "<Twilio.Voice.V1.BulkCountryUpdateInstance>"
122 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
114 def to_s
115   "<Twilio.Voice.V1.BulkCountryUpdateInstance>"
116 end
update_count() click to toggle source

@return [String] The number of countries updated

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
102 def update_count
103   @properties['update_count']
104 end
update_request() click to toggle source

@return [String] A URL encoded JSON array of update objects

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
108 def update_request
109   @properties['update_request']
110 end