Class: Twilio::REST::Routes::V2::PhoneNumberListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Routes::V2::PhoneNumberListResponse
- Defined in:
- lib/twilio-ruby/rest/routes/v2/phone_number.rb
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ PhoneNumberListResponse
constructor
A new instance of PhoneNumberListResponse.
- #phone_number_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ PhoneNumberListResponse
Returns a new instance of PhoneNumberListResponse.
218 219 220 221 222 223 224 |
# File 'lib/twilio-ruby/rest/routes/v2/phone_number.rb', line 218 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
#phone_number_instance ⇒ Object
226 227 228 |
# File 'lib/twilio-ruby/rest/routes/v2/phone_number.rb', line 226 def phone_number_instance @instance end |