Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::MobileInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::MobileInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb
Instance Method Summary collapse
-
#address_requirements ⇒ String
The type of Address resource the phone number requires.
-
#beta ⇒ Boolean
Whether the phone number is new to the Twilio platform.
-
#capabilities ⇒ String
Whether a phone number can receive calls or messages.
-
#friendly_name ⇒ String
A formatted version of the phone number.
-
#initialize(version, payload, account_sid: nil, country_code: nil) ⇒ MobileInstance
constructor
Initialize the MobileInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#iso_country ⇒ String
The ISO country code of this phone number.
-
#lata ⇒ String
The LATA of this phone number.
-
#latitude ⇒ String
The latitude of this phone number’s location.
-
#locality ⇒ String
The locality or city of this phone number’s location.
-
#longitude ⇒ String
The longitude of this phone number’s location.
-
#phone_number ⇒ String
The phone number in E.164 format.
-
#postal_code ⇒ String
The postal or ZIP code of this phone number’s location.
-
#rate_center ⇒ String
The rate center of this phone number.
-
#region ⇒ String
The two-letter state or province abbreviation of this phone number’s location.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil, country_code: nil) ⇒ MobileInstance
Initialize the MobileInstance
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 377 def initialize(version, payload, account_sid: nil, country_code: nil) super(version) # Marshaled Properties @properties = { 'friendly_name' => payload['friendly_name'], 'phone_number' => payload['phone_number'], 'lata' => payload['lata'], 'locality' => payload['locality'], 'rate_center' => payload['rate_center'], 'latitude' => payload['latitude'].to_f, 'longitude' => payload['longitude'].to_f, 'region' => payload['region'], 'postal_code' => payload['postal_code'], 'iso_country' => payload['iso_country'], 'address_requirements' => payload['address_requirements'], 'beta' => payload['beta'], 'capabilities' => payload['capabilities'], } end |
Instance Method Details
#address_requirements ⇒ String
Returns The type of Address resource the phone number requires.
460 461 462 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 460 def address_requirements @properties['address_requirements'] end |
#beta ⇒ Boolean
Returns Whether the phone number is new to the Twilio platform.
466 467 468 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 466 def beta @properties['beta'] end |
#capabilities ⇒ String
Returns Whether a phone number can receive calls or messages.
472 473 474 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 472 def capabilities @properties['capabilities'] end |
#friendly_name ⇒ String
Returns A formatted version of the phone number.
400 401 402 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 400 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
484 485 486 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 484 def inspect "<Twilio.Api.V2010.MobileInstance>" end |
#iso_country ⇒ String
Returns The ISO country code of this phone number.
454 455 456 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 454 def iso_country @properties['iso_country'] end |
#lata ⇒ String
Returns The LATA of this phone number.
412 413 414 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 412 def lata @properties['lata'] end |
#latitude ⇒ String
Returns The latitude of this phone number’s location.
430 431 432 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 430 def latitude @properties['latitude'] end |
#locality ⇒ String
Returns The locality or city of this phone number’s location.
418 419 420 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 418 def locality @properties['locality'] end |
#longitude ⇒ String
Returns The longitude of this phone number’s location.
436 437 438 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 436 def longitude @properties['longitude'] end |
#phone_number ⇒ String
Returns The phone number in E.164 format.
406 407 408 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 406 def phone_number @properties['phone_number'] end |
#postal_code ⇒ String
Returns The postal or ZIP code of this phone number’s location.
448 449 450 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 448 def postal_code @properties['postal_code'] end |
#rate_center ⇒ String
Returns The rate center of this phone number.
424 425 426 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 424 def rate_center @properties['rate_center'] end |
#region ⇒ String
Returns The two-letter state or province abbreviation of this phone number’s location.
442 443 444 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 442 def region @properties['region'] end |
#to_s ⇒ Object
Provide a user friendly representation
478 479 480 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 478 def to_s "<Twilio.Api.V2010.MobileInstance>" end |