class Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNumberInstance

Public Class Methods

new(version, payload, account_sid: nil, address_sid: nil) click to toggle source

Initialize the DependentPhoneNumberInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] account_sid The SID of the

{Account}[https://www.twilio.com/docs/iam/api/account] that created the
DependentPhoneNumber resource.

@param [String] address_sid The unique string that that we created to identify

the Address resource.

@return [DependentPhoneNumberInstance] DependentPhoneNumberInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
165 def initialize(version, payload, account_sid: nil, address_sid: nil)
166   super(version)
167 
168   # Marshaled Properties
169   @properties = {
170       'sid' => payload['sid'],
171       'account_sid' => payload['account_sid'],
172       'friendly_name' => payload['friendly_name'],
173       'phone_number' => payload['phone_number'],
174       'voice_url' => payload['voice_url'],
175       'voice_method' => payload['voice_method'],
176       'voice_fallback_method' => payload['voice_fallback_method'],
177       'voice_fallback_url' => payload['voice_fallback_url'],
178       'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
179       'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
180       'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
181       'sms_fallback_method' => payload['sms_fallback_method'],
182       'sms_fallback_url' => payload['sms_fallback_url'],
183       'sms_method' => payload['sms_method'],
184       'sms_url' => payload['sms_url'],
185       'address_requirements' => payload['address_requirements'],
186       'capabilities' => payload['capabilities'],
187       'status_callback' => payload['status_callback'],
188       'status_callback_method' => payload['status_callback_method'],
189       'api_version' => payload['api_version'],
190       'sms_application_sid' => payload['sms_application_sid'],
191       'voice_application_sid' => payload['voice_application_sid'],
192       'trunk_sid' => payload['trunk_sid'],
193       'emergency_status' => payload['emergency_status'],
194       'emergency_address_sid' => payload['emergency_address_sid'],
195       'uri' => payload['uri'],
196   }
197 end

Public Instance Methods

account_sid() click to toggle source

@return [String] The SID of the Account that created the resource

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
207 def account_sid
208   @properties['account_sid']
209 end
address_requirements() click to toggle source

@return [dependent_phone_number.AddressRequirement] Whether the phone number requires an Address registered with Twilio

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
291 def address_requirements
292   @properties['address_requirements']
293 end
api_version() click to toggle source

@return [String] The API version used to start a new TwiML session

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
315 def api_version
316   @properties['api_version']
317 end
capabilities() click to toggle source

@return [Hash] Indicate if a phone can receive calls or messages

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
297 def capabilities
298   @properties['capabilities']
299 end
date_created() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was created

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
255 def date_created
256   @properties['date_created']
257 end
date_updated() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was last updated

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
261 def date_updated
262   @properties['date_updated']
263 end
emergency_address_sid() click to toggle source

@return [String] The emergency address configuration to use for emergency calling

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
345 def emergency_address_sid
346   @properties['emergency_address_sid']
347 end
emergency_status() click to toggle source

@return [dependent_phone_number.EmergencyStatus] Whether the phone number is enabled for emergency calling

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
339 def emergency_status
340   @properties['emergency_status']
341 end
friendly_name() click to toggle source

@return [String] The string that you assigned to describe the resource

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
213 def friendly_name
214   @properties['friendly_name']
215 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
363 def inspect
364   "<Twilio.Api.V2010.DependentPhoneNumberInstance>"
365 end
phone_number() click to toggle source

@return [String] The phone number in E.164 format

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
219 def phone_number
220   @properties['phone_number']
221 end
sid() click to toggle source

@return [String] The unique string that identifies the resource

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
201 def sid
202   @properties['sid']
203 end
sms_application_sid() click to toggle source

@return [String] The SID of the application that handles SMS messages sent to the phone number

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
321 def sms_application_sid
322   @properties['sms_application_sid']
323 end
sms_fallback_method() click to toggle source

@return [String] The HTTP method used with sms_fallback_url

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
267 def sms_fallback_method
268   @properties['sms_fallback_method']
269 end
sms_fallback_url() click to toggle source

@return [String] The URL that we call when an error occurs while retrieving or executing the TwiML

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
273 def sms_fallback_url
274   @properties['sms_fallback_url']
275 end
sms_method() click to toggle source

@return [String] The HTTP method to use with sms_url

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
279 def sms_method
280   @properties['sms_method']
281 end
sms_url() click to toggle source

@return [String] The URL we call when the phone number receives an incoming SMS message

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
285 def sms_url
286   @properties['sms_url']
287 end
status_callback() click to toggle source

@return [String] The URL to send status information to your application

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
303 def status_callback
304   @properties['status_callback']
305 end
status_callback_method() click to toggle source

@return [String] The HTTP method we use to call status_callback

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
309 def status_callback_method
310   @properties['status_callback_method']
311 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
357 def to_s
358   "<Twilio.Api.V2010.DependentPhoneNumberInstance>"
359 end
trunk_sid() click to toggle source

@return [String] The SID of the Trunk that handles calls to the phone number

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
333 def trunk_sid
334   @properties['trunk_sid']
335 end
uri() click to toggle source

@return [String] The URI of the resource, relative to `api.twilio.com`

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
351 def uri
352   @properties['uri']
353 end
voice_application_sid() click to toggle source

@return [String] The SID of the application that handles calls to the phone number

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
327 def voice_application_sid
328   @properties['voice_application_sid']
329 end
voice_caller_id_lookup() click to toggle source

@return [Boolean] Whether to lookup the caller's name

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
249 def voice_caller_id_lookup
250   @properties['voice_caller_id_lookup']
251 end
voice_fallback_method() click to toggle source

@return [String] The HTTP method used with voice_fallback_url

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
237 def voice_fallback_method
238   @properties['voice_fallback_method']
239 end
voice_fallback_url() click to toggle source

@return [String] The URL we call when an error occurs in TwiML

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
243 def voice_fallback_url
244   @properties['voice_fallback_url']
245 end
voice_method() click to toggle source

@return [String] The HTTP method used with the voice_url

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
231 def voice_method
232   @properties['voice_method']
233 end
voice_url() click to toggle source

@return [String] The URL we call when the phone number receives a call

    # File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
225 def voice_url
226   @properties['voice_url']
227 end