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
This indicates whether the phone number requires you or your customer to have an Address registered with Twilio.
-
#beta ⇒ Boolean
Phone numbers new to the Twilio platform are marked as beta.
-
#capabilities ⇒ String
This is a set of boolean properties that indicate whether a phone number can receive calls or messages.
-
#friendly_name ⇒ String
A nicely-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 coordinate of this phone number.
-
#locality ⇒ String
The locality/city of this phone number.
-
#longitude ⇒ String
The longitude coordinate of this phone number.
-
#phone_number ⇒ String
The phone number, in E.164 format.
-
#postal_code ⇒ String
The postal code of this phone number.
-
#rate_center ⇒ String
The rate center of this phone number.
-
#region ⇒ String
The two-letter state or province abbreviation of this phone number.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil, country_code: nil) ⇒ MobileInstance
Initialize the MobileInstance
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 390 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 This indicates whether the phone number requires you or your customer to have an Address registered with Twilio.
473 474 475 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 473 def address_requirements @properties['address_requirements'] end |
#beta ⇒ Boolean
Returns Phone numbers new to the Twilio platform are marked as beta.
479 480 481 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 479 def beta @properties['beta'] end |
#capabilities ⇒ String
Returns This is a set of boolean properties that indicate whether a phone number can receive calls or messages.
485 486 487 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 485 def capabilities @properties['capabilities'] end |
#friendly_name ⇒ String
Returns A nicely-formatted version of the phone number.
413 414 415 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 413 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
497 498 499 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 497 def inspect "<Twilio.Api.V2010.MobileInstance>" end |
#iso_country ⇒ String
Returns The ISO country code of this phone number.
467 468 469 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 467 def iso_country @properties['iso_country'] end |
#lata ⇒ String
Returns The LATA of this phone number.
425 426 427 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 425 def lata @properties['lata'] end |
#latitude ⇒ String
Returns The latitude coordinate of this phone number.
443 444 445 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 443 def latitude @properties['latitude'] end |
#locality ⇒ String
Returns The locality/city of this phone number.
431 432 433 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 431 def locality @properties['locality'] end |
#longitude ⇒ String
Returns The longitude coordinate of this phone number.
449 450 451 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 449 def longitude @properties['longitude'] end |
#phone_number ⇒ String
Returns The phone number, in E.164 format.
419 420 421 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 419 def phone_number @properties['phone_number'] end |
#postal_code ⇒ String
Returns The postal code of this phone number.
461 462 463 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 461 def postal_code @properties['postal_code'] end |
#rate_center ⇒ String
Returns The rate center of this phone number.
437 438 439 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 437 def rate_center @properties['rate_center'] end |
#region ⇒ String
Returns The two-letter state or province abbreviation of this phone number.
455 456 457 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 455 def region @properties['region'] end |
#to_s ⇒ Object
Provide a user friendly representation
491 492 493 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb', line 491 def to_s "<Twilio.Api.V2010.MobileInstance>" end |