Class: Twilio::REST::Lookups::V2::QueryListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Lookups::V2::QueryListResponse
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ QueryListResponse
constructor
A new instance of QueryListResponse.
- #query ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ QueryListResponse
Returns a new instance of QueryListResponse.
283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 283 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @query = data_list.map do |data| QueryInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
299 300 301 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 299 def headers @headers end |
#query ⇒ Object
295 296 297 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 295 def query @query end |
#status_code ⇒ Object
303 304 305 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 303 def status_code @status_code end |