Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::MachineToMachineInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::MachineToMachineInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.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 ⇒ ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities
-
#friendly_name ⇒ String
A formatted version of the phone number.
-
#initialize(version, payload, account_sid: nil, country_code: nil) ⇒ MachineToMachineInstance
constructor
Initialize the MachineToMachineInstance.
-
#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 ⇒ Float
The latitude of this phone number's location.
-
#locality ⇒ String
The locality or city of this phone number's location.
-
#longitude ⇒ Float
The longitude of this phone number's location.
-
#phone_number ⇒ String
The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.
-
#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) ⇒ MachineToMachineInstance
Initialize the MachineToMachineInstance
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 406 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'], 'longitude' => payload['longitude'], '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
491 492 493 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 491 def address_requirements @properties['address_requirements'] end |
#beta ⇒ Boolean
497 498 499 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 497 def beta @properties['beta'] end |
#capabilities ⇒ ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities
503 504 505 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 503 def capabilities @properties['capabilities'] end |
#friendly_name ⇒ String
431 432 433 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 431 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
515 516 517 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 515 def inspect "<Twilio.Api.V2010.MachineToMachineInstance>" end |
#iso_country ⇒ String
485 486 487 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 485 def iso_country @properties['iso_country'] end |
#lata ⇒ String
443 444 445 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 443 def lata @properties['lata'] end |
#latitude ⇒ Float
461 462 463 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 461 def latitude @properties['latitude'] end |
#locality ⇒ String
449 450 451 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 449 def locality @properties['locality'] end |
#longitude ⇒ Float
467 468 469 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 467 def longitude @properties['longitude'] end |
#phone_number ⇒ String
437 438 439 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 437 def phone_number @properties['phone_number'] end |
#postal_code ⇒ String
479 480 481 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 479 def postal_code @properties['postal_code'] end |
#rate_center ⇒ String
455 456 457 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 455 def rate_center @properties['rate_center'] end |
#region ⇒ String
473 474 475 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 473 def region @properties['region'] end |
#to_s ⇒ Object
Provide a user friendly representation
509 510 511 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 509 def to_s "<Twilio.Api.V2010.MachineToMachineInstance>" end |