Class: Twilio::REST::Messaging::V1::ServiceContext::PhoneNumberListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Messaging::V1::ServiceContext::PhoneNumberListResponse
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb,
lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ PhoneNumberListResponse
constructor
A new instance of PhoneNumberListResponse.
- #phone_number ⇒ Object
- #phone_number_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ PhoneNumberListResponse
Returns a new instance of PhoneNumberListResponse.
358 359 360 361 362 363 364 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb', line 358 def initialize(version, payload, key) @phone_number_instance = payload.body[key].map do |data| PhoneNumberInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
451 452 453 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb', line 451 def headers @headers end |
#phone_number ⇒ Object
447 448 449 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb', line 447 def phone_number @phone_number end |
#phone_number_instance ⇒ Object
366 367 368 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb', line 366 def phone_number_instance @instance end |
#status_code ⇒ Object
455 456 457 |
# File 'lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb', line 455 def status_code @status_code end |