Class: Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb
Instance Method Summary collapse
- #headers ⇒ Object
- #incoming_phone_number ⇒ Object
- #incoming_phone_number_instance ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ IncomingPhoneNumberListResponse
constructor
A new instance of IncomingPhoneNumberListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ IncomingPhoneNumberListResponse
Returns a new instance of IncomingPhoneNumberListResponse.
764 765 766 767 768 769 770 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb', line 764 def initialize(version, payload, key) @incoming_phone_number_instance = payload.body[key].map do |data| IncomingPhoneNumberInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
857 858 859 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb', line 857 def headers @headers end |
#incoming_phone_number ⇒ Object
853 854 855 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb', line 853 def incoming_phone_number @incoming_phone_number end |
#incoming_phone_number_instance ⇒ Object
772 773 774 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb', line 772 def incoming_phone_number_instance @instance end |
#status_code ⇒ Object
861 862 863 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb', line 861 def status_code @status_code end |