Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkflowInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, workflow_instance, headers, status_code) ⇒ WorkflowInstanceMetadata

Initializes a new WorkflowInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}WorkflowInstance]

    workflow_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



490
491
492
493
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 490

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

Instance Method Details

#headersObject



499
500
501
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 499

def headers
    @headers
end

#status_codeObject



503
504
505
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 503

def status_code
    @status_code
end

#to_sObject



507
508
509
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 507

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

#workflowObject



495
496
497
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb', line 495

def workflow
    @workflow_instance
end