Class: Twilio::REST::Insights::V3::QueryJobInstanceMetadata

Inherits:
Twilio::REST::InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/insights/v3/query_job.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, query_job_instance, headers, status_code) ⇒ QueryJobInstanceMetadata

Initializes a new QueryJobInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}QueryJobInstance] —

    query_job_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



401
402
403
404
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 401

def initialize(version, query_job_instance, headers, status_code)
    super(version, headers, status_code)
    @query_job_instance = query_job_instance
end

Instance Method Details

#headers ⇒ Object



410
411
412
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 410

def headers
    @headers
end

#query_job ⇒ Object



406
407
408
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 406

def query_job
    @query_job_instance
end

#status_code ⇒ Object



414
415
416
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 414

def status_code
    @status_code
end

#to_s ⇒ Object



418
419
420
# File 'lib/twilio-ruby/rest/insights/v3/query_job.rb', line 418

def to_s
  "<Twilio.Api.V2010.QueryJobInstanceMetadata status=#{@status_code}>"
end