Class: Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList::MobileInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList::MobileInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The account_sid.
-
#address_requirements ⇒ mobile.AddressRequirement
The address_requirements.
-
#api_version ⇒ String
The api_version.
-
#beta ⇒ Boolean
The beta.
-
#capabilities ⇒ String
The capabilities.
-
#date_created ⇒ Time
The date_created.
-
#date_updated ⇒ Time
The date_updated.
-
#friendly_name ⇒ String
The friendly_name.
-
#initialize(version, payload, account_sid: nil) ⇒ MobileInstance
constructor
Initialize the MobileInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#origin ⇒ String
The origin.
-
#phone_number ⇒ String
The phone_number.
-
#sid ⇒ String
The sid.
-
#sms_application_sid ⇒ String
The sms_application_sid.
-
#sms_fallback_method ⇒ String
The sms_fallback_method.
-
#sms_fallback_url ⇒ String
The sms_fallback_url.
-
#sms_method ⇒ String
The sms_method.
-
#sms_url ⇒ String
The sms_url.
-
#status_callback ⇒ String
The status_callback.
-
#status_callback_method ⇒ String
The status_callback_method.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trunk_sid ⇒ String
The trunk_sid.
-
#uri ⇒ String
The uri.
-
#voice_application_sid ⇒ String
The voice_application_sid.
-
#voice_caller_id_lookup ⇒ Boolean
The voice_caller_id_lookup.
-
#voice_fallback_method ⇒ String
The voice_fallback_method.
-
#voice_fallback_url ⇒ String
The voice_fallback_url.
-
#voice_method ⇒ String
The voice_method.
-
#voice_url ⇒ String
The voice_url.
Constructor Details
#initialize(version, payload, account_sid: nil) ⇒ MobileInstance
Initialize the MobileInstance
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 244 def initialize(version, payload, account_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'address_requirements' => payload['address_requirements'], 'api_version' => payload['api_version'], 'beta' => payload['beta'], 'capabilities' => payload['capabilities'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 'friendly_name' => payload['friendly_name'], 'phone_number' => payload['phone_number'], 'origin' => payload['origin'], 'sid' => payload['sid'], 'sms_application_sid' => payload['sms_application_sid'], 'sms_fallback_method' => payload['sms_fallback_method'], 'sms_fallback_url' => payload['sms_fallback_url'], 'sms_method' => payload['sms_method'], 'sms_url' => payload['sms_url'], 'status_callback' => payload['status_callback'], 'status_callback_method' => payload['status_callback_method'], 'trunk_sid' => payload['trunk_sid'], 'uri' => payload['uri'], 'voice_application_sid' => payload['voice_application_sid'], 'voice_caller_id_lookup' => payload['voice_caller_id_lookup'], 'voice_fallback_method' => payload['voice_fallback_method'], 'voice_fallback_url' => payload['voice_fallback_url'], 'voice_method' => payload['voice_method'], 'voice_url' => payload['voice_url'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The account_sid.
280 281 282 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 280 def account_sid @properties['account_sid'] end |
#address_requirements ⇒ mobile.AddressRequirement
Returns The address_requirements.
286 287 288 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 286 def address_requirements @properties['address_requirements'] end |
#api_version ⇒ String
Returns The api_version.
292 293 294 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 292 def api_version @properties['api_version'] end |
#beta ⇒ Boolean
Returns The beta.
298 299 300 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 298 def beta @properties['beta'] end |
#capabilities ⇒ String
Returns The capabilities.
304 305 306 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 304 def capabilities @properties['capabilities'] end |
#date_created ⇒ Time
Returns The date_created.
310 311 312 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 310 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date_updated.
316 317 318 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 316 def date_updated @properties['date_updated'] end |
#friendly_name ⇒ String
Returns The friendly_name.
322 323 324 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 322 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
442 443 444 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 442 def inspect "<Twilio.Api.V2010.MobileInstance>" end |
#origin ⇒ String
Returns The origin.
334 335 336 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 334 def origin @properties['origin'] end |
#phone_number ⇒ String
Returns The phone_number.
328 329 330 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 328 def phone_number @properties['phone_number'] end |
#sid ⇒ String
Returns The sid.
340 341 342 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 340 def sid @properties['sid'] end |
#sms_application_sid ⇒ String
Returns The sms_application_sid.
346 347 348 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 346 def sms_application_sid @properties['sms_application_sid'] end |
#sms_fallback_method ⇒ String
Returns The sms_fallback_method.
352 353 354 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 352 def sms_fallback_method @properties['sms_fallback_method'] end |
#sms_fallback_url ⇒ String
Returns The sms_fallback_url.
358 359 360 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 358 def sms_fallback_url @properties['sms_fallback_url'] end |
#sms_method ⇒ String
Returns The sms_method.
364 365 366 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 364 def sms_method @properties['sms_method'] end |
#sms_url ⇒ String
Returns The sms_url.
370 371 372 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 370 def sms_url @properties['sms_url'] end |
#status_callback ⇒ String
Returns The status_callback.
376 377 378 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 376 def status_callback @properties['status_callback'] end |
#status_callback_method ⇒ String
Returns The status_callback_method.
382 383 384 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 382 def status_callback_method @properties['status_callback_method'] end |
#to_s ⇒ Object
Provide a user friendly representation
436 437 438 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 436 def to_s "<Twilio.Api.V2010.MobileInstance>" end |
#trunk_sid ⇒ String
Returns The trunk_sid.
388 389 390 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 388 def trunk_sid @properties['trunk_sid'] end |
#uri ⇒ String
Returns The uri.
394 395 396 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 394 def uri @properties['uri'] end |
#voice_application_sid ⇒ String
Returns The voice_application_sid.
400 401 402 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 400 def voice_application_sid @properties['voice_application_sid'] end |
#voice_caller_id_lookup ⇒ Boolean
Returns The voice_caller_id_lookup.
406 407 408 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 406 def voice_caller_id_lookup @properties['voice_caller_id_lookup'] end |
#voice_fallback_method ⇒ String
Returns The voice_fallback_method.
412 413 414 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 412 def voice_fallback_method @properties['voice_fallback_method'] end |
#voice_fallback_url ⇒ String
Returns The voice_fallback_url.
418 419 420 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 418 def voice_fallback_url @properties['voice_fallback_url'] end |
#voice_method ⇒ String
Returns The voice_method.
424 425 426 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 424 def voice_method @properties['voice_method'] end |
#voice_url ⇒ String
Returns The voice_url.
430 431 432 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 430 def voice_url @properties['voice_url'] end |