Class: Twilio::REST::Lookups::V1::PhoneNumberListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Lookups::V1::PhoneNumberListResponse
- Defined in:
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb,
lib/twilio-ruby/rest/lookups/v1/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
184 185 186 187 188 189 190 |
# File 'lib/twilio-ruby/rest/lookups/v1/phone_number.rb', line 184 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
277 278 279 |
# File 'lib/twilio-ruby/rest/lookups/v1/phone_number.rb', line 277 def headers @headers end |
#phone_number ⇒ Object
273 274 275 |
# File 'lib/twilio-ruby/rest/lookups/v1/phone_number.rb', line 273 def phone_number @phone_number end |
#phone_number_instance ⇒ Object
192 193 194 |
# File 'lib/twilio-ruby/rest/lookups/v1/phone_number.rb', line 192 def phone_number_instance @instance end |
#status_code ⇒ Object
281 282 283 |
# File 'lib/twilio-ruby/rest/lookups/v1/phone_number.rb', line 281 def status_code @status_code end |