Class: Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNumberListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNumberListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb
Instance Method Summary collapse
- #dependent_phone_number ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ DependentPhoneNumberListResponse
constructor
A new instance of DependentPhoneNumberListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ DependentPhoneNumberListResponse
Returns a new instance of DependentPhoneNumberListResponse.
219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 219 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @dependent_phone_number = data_list.map do |data| DependentPhoneNumberInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#dependent_phone_number ⇒ Object
231 232 233 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 231 def dependent_phone_number @dependent_phone_number end |
#headers ⇒ Object
235 236 237 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 235 def headers @headers end |
#status_code ⇒ Object
239 240 241 |
# File 'lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb', line 239 def status_code @status_code end |