Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::SharedCostInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::SharedCostInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb
Instance Method Summary collapse
-
#address_requirements ⇒ String
The address_requirements.
-
#beta ⇒ Boolean
The beta.
-
#capabilities ⇒ String
The capabilities.
-
#friendly_name ⇒ String
The friendly_name.
-
#initialize(version, payload, account_sid: nil, country_code: nil) ⇒ SharedCostInstance
constructor
Initialize the SharedCostInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#iso_country ⇒ String
The iso_country.
-
#lata ⇒ String
The lata.
-
#latitude ⇒ String
The latitude.
-
#locality ⇒ String
The locality.
-
#longitude ⇒ String
The longitude.
-
#phone_number ⇒ String
The phone_number.
-
#postal_code ⇒ String
The postal_code.
-
#rate_center ⇒ String
The rate_center.
-
#region ⇒ String
The region.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil, country_code: nil) ⇒ SharedCostInstance
Initialize the SharedCostInstance
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 282 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 address_requirements.
365 366 367 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 365 def address_requirements @properties['address_requirements'] end |
#beta ⇒ Boolean
Returns The beta.
371 372 373 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 371 def beta @properties['beta'] end |
#capabilities ⇒ String
Returns The capabilities.
377 378 379 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 377 def capabilities @properties['capabilities'] end |
#friendly_name ⇒ String
Returns The friendly_name.
305 306 307 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 305 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
389 390 391 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 389 def inspect "<Twilio.Api.V2010.SharedCostInstance>" end |
#iso_country ⇒ String
Returns The iso_country.
359 360 361 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 359 def iso_country @properties['iso_country'] end |
#lata ⇒ String
Returns The lata.
317 318 319 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 317 def lata @properties['lata'] end |
#latitude ⇒ String
Returns The latitude.
335 336 337 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 335 def latitude @properties['latitude'] end |
#locality ⇒ String
Returns The locality.
323 324 325 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 323 def locality @properties['locality'] end |
#longitude ⇒ String
Returns The longitude.
341 342 343 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 341 def longitude @properties['longitude'] end |
#phone_number ⇒ String
Returns The phone_number.
311 312 313 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 311 def phone_number @properties['phone_number'] end |
#postal_code ⇒ String
Returns The postal_code.
353 354 355 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 353 def postal_code @properties['postal_code'] end |
#rate_center ⇒ String
Returns The rate_center.
329 330 331 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 329 def rate_center @properties['rate_center'] end |
#region ⇒ String
Returns The region.
347 348 349 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 347 def region @properties['region'] end |
#to_s ⇒ Object
Provide a user friendly representation
383 384 385 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb', line 383 def to_s "<Twilio.Api.V2010.SharedCostInstance>" end |