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

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, account_sid: nil, address_sid: nil) ⇒ DependentPhoneNumberInstance

Initialize the DependentPhoneNumberInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String) (defaults to: nil)

    The account_sid

  • address_sid (String) (defaults to: nil)

    A 34 character string that uniquely identifies this address.



163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 163

def initialize(version, payload, account_sid: nil, address_sid: nil)
  super(version)

  # Marshaled Properties
  @properties = {
      'sid' => payload['sid'],
      'account_sid' => payload['account_sid'],
      'friendly_name' => payload['friendly_name'],
      'phone_number' => payload['phone_number'],
      'voice_url' => payload['voice_url'],
      'voice_method' => payload['voice_method'],
      'voice_fallback_method' => payload['voice_fallback_method'],
      'voice_fallback_url' => payload['voice_fallback_url'],
      'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
      'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
      'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
      'sms_fallback_method' => payload['sms_fallback_method'],
      'sms_fallback_url' => payload['sms_fallback_url'],
      'sms_method' => payload['sms_method'],
      'sms_url' => payload['sms_url'],
      'address_requirements' => payload['address_requirements'],
      'capabilities' => payload['capabilities'],
      'status_callback' => payload['status_callback'],
      'status_callback_method' => payload['status_callback_method'],
      'api_version' => payload['api_version'],
      'sms_application_sid' => payload['sms_application_sid'],
      'voice_application_sid' => payload['voice_application_sid'],
      'trunk_sid' => payload['trunk_sid'],
      'emergency_status' => payload['emergency_status'],
      'emergency_address_sid' => payload['emergency_address_sid'],
      'uri' => payload['uri'],
  }
end

Instance Method Details

#account_sidString

Returns The account_sid.

Returns:

  • (String)

    The account_sid



205
206
207
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 205

def 
  @properties['account_sid']
end

#address_requirementsdependent_phone_number.AddressRequirement

Returns The address_requirements.

Returns:

  • (dependent_phone_number.AddressRequirement)

    The address_requirements



289
290
291
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 289

def address_requirements
  @properties['address_requirements']
end

#api_versionString

Returns The api_version.

Returns:

  • (String)

    The api_version



313
314
315
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 313

def api_version
  @properties['api_version']
end

#capabilitiesHash

Returns The capabilities.

Returns:

  • (Hash)

    The capabilities



295
296
297
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 295

def capabilities
  @properties['capabilities']
end

#date_createdTime

Returns The date_created.

Returns:

  • (Time)

    The date_created



253
254
255
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 253

def date_created
  @properties['date_created']
end

#date_updatedTime

Returns The date_updated.

Returns:

  • (Time)

    The date_updated



259
260
261
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 259

def date_updated
  @properties['date_updated']
end

#emergency_address_sidString

Returns The emergency_address_sid.

Returns:

  • (String)

    The emergency_address_sid



343
344
345
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 343

def emergency_address_sid
  @properties['emergency_address_sid']
end

#emergency_statusdependent_phone_number.EmergencyStatus

Returns The emergency_status.

Returns:

  • (dependent_phone_number.EmergencyStatus)

    The emergency_status



337
338
339
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 337

def emergency_status
  @properties['emergency_status']
end

#friendly_nameString

Returns The friendly_name.

Returns:

  • (String)

    The friendly_name



211
212
213
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 211

def friendly_name
  @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation



361
362
363
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 361

def inspect
  "<Twilio.Api.V2010.DependentPhoneNumberInstance>"
end

#phone_numberString

Returns The phone_number.

Returns:

  • (String)

    The phone_number



217
218
219
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 217

def phone_number
  @properties['phone_number']
end

#sidString

Returns The sid.

Returns:

  • (String)

    The sid



199
200
201
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 199

def sid
  @properties['sid']
end

#sms_application_sidString

Returns The sms_application_sid.

Returns:

  • (String)

    The sms_application_sid



319
320
321
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 319

def sms_application_sid
  @properties['sms_application_sid']
end

#sms_fallback_methodString

Returns The sms_fallback_method.

Returns:

  • (String)

    The sms_fallback_method



265
266
267
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 265

def sms_fallback_method
  @properties['sms_fallback_method']
end

#sms_fallback_urlString

Returns The sms_fallback_url.

Returns:

  • (String)

    The sms_fallback_url



271
272
273
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 271

def sms_fallback_url
  @properties['sms_fallback_url']
end

#sms_methodString

Returns The sms_method.

Returns:

  • (String)

    The sms_method



277
278
279
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 277

def sms_method
  @properties['sms_method']
end

#sms_urlString

Returns The sms_url.

Returns:

  • (String)

    The sms_url



283
284
285
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 283

def sms_url
  @properties['sms_url']
end

#status_callbackString

Returns The status_callback.

Returns:

  • (String)

    The status_callback



301
302
303
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 301

def status_callback
  @properties['status_callback']
end

#status_callback_methodString

Returns The status_callback_method.

Returns:

  • (String)

    The status_callback_method



307
308
309
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 307

def status_callback_method
  @properties['status_callback_method']
end

#to_sObject

Provide a user friendly representation



355
356
357
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 355

def to_s
  "<Twilio.Api.V2010.DependentPhoneNumberInstance>"
end

#trunk_sidString

Returns The trunk_sid.

Returns:

  • (String)

    The trunk_sid



331
332
333
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 331

def trunk_sid
  @properties['trunk_sid']
end

#uriString

Returns The uri.

Returns:

  • (String)

    The uri



349
350
351
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 349

def uri
  @properties['uri']
end

#voice_application_sidString

Returns The voice_application_sid.

Returns:

  • (String)

    The voice_application_sid



325
326
327
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 325

def voice_application_sid
  @properties['voice_application_sid']
end

#voice_caller_id_lookupBoolean

Returns The voice_caller_id_lookup.

Returns:

  • (Boolean)

    The voice_caller_id_lookup



247
248
249
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 247

def voice_caller_id_lookup
  @properties['voice_caller_id_lookup']
end

#voice_fallback_methodString

Returns The voice_fallback_method.

Returns:

  • (String)

    The voice_fallback_method



235
236
237
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 235

def voice_fallback_method
  @properties['voice_fallback_method']
end

#voice_fallback_urlString

Returns The voice_fallback_url.

Returns:

  • (String)

    The voice_fallback_url



241
242
243
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 241

def voice_fallback_url
  @properties['voice_fallback_url']
end

#voice_methodString

Returns The voice_method.

Returns:

  • (String)

    The voice_method



229
230
231
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 229

def voice_method
  @properties['voice_method']
end

#voice_urlString

Returns The voice_url.

Returns:

  • (String)

    The voice_url



223
224
225
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 223

def voice_url
  @properties['voice_url']
end