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
-
#account_sid ⇒ String
The account_sid.
-
#address_requirements ⇒ dependent_phone_number.AddressRequirement
The address_requirements.
-
#api_version ⇒ String
The api_version.
-
#capabilities ⇒ Hash
The capabilities.
-
#date_created ⇒ Time
The date_created.
-
#date_updated ⇒ Time
The date_updated.
-
#emergency_address_sid ⇒ String
The emergency_address_sid.
-
#emergency_status ⇒ dependent_phone_number.EmergencyStatus
The emergency_status.
-
#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.
-
#phone_number ⇒ String
The phone_number.
-
#sid ⇒ String
The sid.
-
#sms_application_sid ⇒ String
The sms_application_sid.
-
#sms_fallback_method ⇒ String
The sms_fallback_method.
-
#sms_fallback_url ⇒ String
The sms_fallback_url.
-
#sms_method ⇒ String
The sms_method.
-
#sms_url ⇒ String
The sms_url.
-
#status_callback ⇒ String
The status_callback.
-
#status_callback_method ⇒ String
The status_callback_method.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trunk_sid ⇒ String
The trunk_sid.
-
#uri ⇒ String
The uri.
-
#voice_application_sid ⇒ String
The voice_application_sid.
-
#voice_caller_id_lookup ⇒ Boolean
The voice_caller_id_lookup.
-
#voice_fallback_method ⇒ String
The voice_fallback_method.
-
#voice_fallback_url ⇒ String
The voice_fallback_url.
-
#voice_method ⇒ String
The voice_method.
-
#voice_url ⇒ String
The voice_url.
Constructor Details
#initialize(version, payload, account_sid: nil, address_sid: nil) ⇒ DependentPhoneNumberInstance
Initialize the DependentPhoneNumberInstance
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 163 def initialize(version, payload, account_sid: nil, address_sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'friendly_name' => payload['friendly_name'], 'phone_number' => payload['phone_number'], 'voice_url' => payload['voice_url'], 'voice_method' => payload['voice_method'], 'voice_fallback_method' => payload['voice_fallback_method'], 'voice_fallback_url' => payload['voice_fallback_url'], 'voice_caller_id_lookup' => payload['voice_caller_id_lookup'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 'sms_fallback_method' => payload['sms_fallback_method'], 'sms_fallback_url' => payload['sms_fallback_url'], 'sms_method' => payload['sms_method'], 'sms_url' => payload['sms_url'], 'address_requirements' => payload['address_requirements'], 'capabilities' => payload['capabilities'], 'status_callback' => payload['status_callback'], 'status_callback_method' => payload['status_callback_method'], 'api_version' => payload['api_version'], 'sms_application_sid' => payload['sms_application_sid'], 'voice_application_sid' => payload['voice_application_sid'], 'trunk_sid' => payload['trunk_sid'], 'emergency_status' => payload['emergency_status'], 'emergency_address_sid' => payload['emergency_address_sid'], 'uri' => payload['uri'], } end |
Instance Method Details
#account_sid ⇒ String
205 206 207 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 205 def account_sid @properties['account_sid'] end |
#address_requirements ⇒ dependent_phone_number.AddressRequirement
289 290 291 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 289 def address_requirements @properties['address_requirements'] end |
#api_version ⇒ String
313 314 315 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 313 def api_version @properties['api_version'] end |
#capabilities ⇒ Hash
295 296 297 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 295 def capabilities @properties['capabilities'] end |
#date_created ⇒ Time
253 254 255 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 253 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
259 260 261 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 259 def date_updated @properties['date_updated'] end |
#emergency_address_sid ⇒ String
343 344 345 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 343 def emergency_address_sid @properties['emergency_address_sid'] end |
#emergency_status ⇒ dependent_phone_number.EmergencyStatus
337 338 339 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 337 def emergency_status @properties['emergency_status'] end |
#friendly_name ⇒ String
211 212 213 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 211 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
361 362 363 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 361 def inspect "<Twilio.Api.V2010.DependentPhoneNumberInstance>" end |
#phone_number ⇒ String
217 218 219 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 217 def phone_number @properties['phone_number'] end |
#sid ⇒ String
199 200 201 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 199 def sid @properties['sid'] end |
#sms_application_sid ⇒ String
319 320 321 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 319 def sms_application_sid @properties['sms_application_sid'] end |
#sms_fallback_method ⇒ String
265 266 267 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 265 def sms_fallback_method @properties['sms_fallback_method'] end |
#sms_fallback_url ⇒ String
271 272 273 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 271 def sms_fallback_url @properties['sms_fallback_url'] end |
#sms_method ⇒ String
277 278 279 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 277 def sms_method @properties['sms_method'] end |
#sms_url ⇒ String
283 284 285 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 283 def sms_url @properties['sms_url'] end |
#status_callback ⇒ String
301 302 303 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 301 def status_callback @properties['status_callback'] end |
#status_callback_method ⇒ String
307 308 309 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 307 def status_callback_method @properties['status_callback_method'] end |
#to_s ⇒ Object
Provide a user friendly representation
355 356 357 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 355 def to_s "<Twilio.Api.V2010.DependentPhoneNumberInstance>" end |
#trunk_sid ⇒ String
331 332 333 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 331 def trunk_sid @properties['trunk_sid'] end |
#uri ⇒ String
349 350 351 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 349 def uri @properties['uri'] end |
#voice_application_sid ⇒ String
325 326 327 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 325 def voice_application_sid @properties['voice_application_sid'] end |
#voice_caller_id_lookup ⇒ Boolean
247 248 249 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 247 def voice_caller_id_lookup @properties['voice_caller_id_lookup'] end |
#voice_fallback_method ⇒ String
235 236 237 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 235 def voice_fallback_method @properties['voice_fallback_method'] end |
#voice_fallback_url ⇒ String
241 242 243 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 241 def voice_fallback_url @properties['voice_fallback_url'] end |
#voice_method ⇒ String
229 230 231 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 229 def voice_method @properties['voice_method'] end |
#voice_url ⇒ String
223 224 225 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 223 def voice_url @properties['voice_url'] end |