Class: Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNumberInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNumberInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
Instance Method Summary collapse
-
#address_requirements ⇒ String
The address_requirements.
-
#capabilities ⇒ String
The capabilities.
-
#friendly_name ⇒ String
The friendly_name.
-
#initialize(version, payload, account_sid: nil, address_sid: nil) ⇒ DependentPhoneNumberInstance
constructor
Initialize the DependentPhoneNumberInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#iso_country ⇒ String
The iso_country.
-
#lata ⇒ String
The lata.
-
#latitude ⇒ String
The latitude.
-
#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, address_sid: nil) ⇒ DependentPhoneNumberInstance
Initialize the DependentPhoneNumberInstance
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 169 def initialize(version, payload, account_sid: nil, address_sid: nil) super(version) # Marshaled Properties @properties = { 'friendly_name' => payload['friendly_name'], 'phone_number' => payload['phone_number'], 'lata' => payload['lata'], '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'], 'capabilities' => payload['capabilities'], } end |
Instance Method Details
#address_requirements ⇒ String
Returns The address_requirements.
244 245 246 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 244 def address_requirements @properties['address_requirements'] end |
#capabilities ⇒ String
Returns The capabilities.
250 251 252 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 250 def capabilities @properties['capabilities'] end |
#friendly_name ⇒ String
Returns The friendly_name.
190 191 192 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 190 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
262 263 264 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 262 def inspect "<Twilio.Api.V2010.DependentPhoneNumberInstance>" end |
#iso_country ⇒ String
Returns The iso_country.
238 239 240 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 238 def iso_country @properties['iso_country'] end |
#lata ⇒ String
Returns The lata.
202 203 204 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 202 def lata @properties['lata'] end |
#latitude ⇒ String
Returns The latitude.
214 215 216 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 214 def latitude @properties['latitude'] end |
#longitude ⇒ String
Returns The longitude.
220 221 222 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 220 def longitude @properties['longitude'] end |
#phone_number ⇒ String
Returns The phone_number.
196 197 198 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 196 def phone_number @properties['phone_number'] end |
#postal_code ⇒ String
Returns The postal_code.
232 233 234 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 232 def postal_code @properties['postal_code'] end |
#rate_center ⇒ String
Returns The rate_center.
208 209 210 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 208 def rate_center @properties['rate_center'] end |
#region ⇒ String
Returns The region.
226 227 228 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 226 def region @properties['region'] end |
#to_s ⇒ Object
Provide a user friendly representation
256 257 258 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 256 def to_s "<Twilio.Api.V2010.DependentPhoneNumberInstance>" end |