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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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