Class: Twilio::REST::Voice::V1::DialingPermissionsList::BulkCountryUpdateInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb

Overview

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 [email protected].

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ BulkCountryUpdateInstance

Initialize the BulkCountryUpdateInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio



95
96
97
98
99
100
101
102
103
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 95

def initialize(version, payload)
  super(version)

  # Marshaled Properties
  @properties = {
      'update_count' => payload['update_count'].to_i,
      'update_request' => payload['update_request'],
  }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



125
126
127
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 125

def inspect
  "<Twilio.Voice.V1.BulkCountryUpdateInstance>"
end

#to_sObject

Provide a user friendly representation



119
120
121
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 119

def to_s
  "<Twilio.Voice.V1.BulkCountryUpdateInstance>"
end

#update_countString

Returns The number of countries updated.

Returns:

  • (String)

    The number of countries updated



107
108
109
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 107

def update_count
  @properties['update_count']
end

#update_requestString

Returns A URL encoded JSON array of update objects.

Returns:

  • (String)

    A URL encoded JSON array of update objects



113
114
115
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 113

def update_request
  @properties['update_request']
end