Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::NationalInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::NationalInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb
Instance Method Summary collapse
-
#address_requirements ⇒ String
The type of [Address](www.twilio.com/docs/usage/api/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) ⇒ NationalInstance
constructor
Initialize the NationalInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#iso_country ⇒ String
The [ISO country code](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number.
-
#lata ⇒ String
The [LATA](en.wikipedia.org/wiki/Local_access_and_transport_area) 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](www.twilio.com/docs/glossary/what-e164) 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](en.wikipedia.org/wiki/Telephone_exchange) 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) ⇒ NationalInstance
Initialize the NationalInstance
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 275 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
359 360 361 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 359 def address_requirements @properties['address_requirements'] end |
#beta ⇒ Boolean
365 366 367 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 365 def beta @properties['beta'] end |
#capabilities ⇒ ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities
371 372 373 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 371 def capabilities @properties['capabilities'] end |
#friendly_name ⇒ String
299 300 301 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 299 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
383 384 385 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 383 def inspect "<Twilio.Api.V2010.NationalInstance>" end |
#iso_country ⇒ String
353 354 355 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 353 def iso_country @properties['iso_country'] end |
#lata ⇒ String
311 312 313 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 311 def lata @properties['lata'] end |
#latitude ⇒ Float
329 330 331 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 329 def latitude @properties['latitude'] end |
#locality ⇒ String
317 318 319 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 317 def locality @properties['locality'] end |
#longitude ⇒ Float
335 336 337 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 335 def longitude @properties['longitude'] end |
#phone_number ⇒ String
305 306 307 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 305 def phone_number @properties['phone_number'] end |
#postal_code ⇒ String
347 348 349 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 347 def postal_code @properties['postal_code'] end |
#rate_center ⇒ String
323 324 325 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 323 def rate_center @properties['rate_center'] end |
#region ⇒ String
341 342 343 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 341 def region @properties['region'] end |
#to_s ⇒ Object
Provide a user friendly representation
377 378 379 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb', line 377 def to_s "<Twilio.Api.V2010.NationalInstance>" end |