Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkflowContext::WorkflowStatisticsList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, workspace_sid: nil, workflow_sid: nil) ⇒ WorkflowStatisticsList

Initialize the WorkflowStatisticsList

Parameters:

  • version (Version)

    Version that contains the resource

  • workspace_sid (String) (defaults to: nil)

    The SID of the Workspace that contains the Workflow.

  • workflow_sid (String) (defaults to: nil)

    Returns the list of Tasks that are being controlled by the Workflow with the specified SID value.


24
25
26
27
28
29
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb', line 24

def initialize(version, workspace_sid: nil, workflow_sid: nil)
  super(version)

  # Path Solution
  @solution = {workspace_sid: workspace_sid, workflow_sid: workflow_sid}
end

Instance Method Details

#to_sObject

Provide a user friendly representation


33
34
35
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb', line 33

def to_s
  '#<Twilio.Taskrouter.V1.WorkflowStatisticsList>'
end