Class: Twilio::REST::Bulkexports::V1::ExportList::JobInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/bulkexports/v1/export/job.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, job_instance, headers, status_code) ⇒ JobInstanceMetadata

Initializes a new JobInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}JobInstance]

    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.



162
163
164
165
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/job.rb', line 162

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

Instance Method Details

#headersObject



171
172
173
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/job.rb', line 171

def headers
    @headers
end

#jobObject



167
168
169
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/job.rb', line 167

def job
    @job_instance
end

#status_codeObject



175
176
177
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/job.rb', line 175

def status_code
    @status_code
end

#to_sObject



179
180
181
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/job.rb', line 179

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