Class: Twilio::REST::Insights::V3::QueryJobListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Insights::V3::QueryJobListResponse
- Defined in:
- lib/twilio-ruby/rest/insights/v3/query_job.rb,
lib/twilio-ruby/rest/insights/v3/query_job.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ QueryJobListResponse
constructor
A new instance of QueryJobListResponse.
- #query_job ⇒ Object
- #query_job_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ QueryJobListResponse
Returns a new instance of QueryJobListResponse.
427 428 429 430 431 432 433 |
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 427 def initialize(version, payload, key) @query_job_instance = payload.body[key].map do |data| QueryJobInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
521 522 523 |
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 521 def headers @headers end |
#query_job ⇒ Object
517 518 519 |
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 517 def query_job @query_job end |
#query_job_instance ⇒ Object
435 436 437 |
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 435 def query_job_instance @instance end |
#status_code ⇒ Object
525 526 527 |
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 525 def status_code @status_code end |