class Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkflowContext::WorkflowStatisticsPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the WorkflowStatisticsPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [WorkflowStatisticsPage] WorkflowStatisticsPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb 45 def initialize(version, response, solution) 46 super(version, response) 47 48 # Path Solution 49 @solution = solution 50 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of WorkflowStatisticsInstance
@param [Hash] payload Payload response from the API @return [WorkflowStatisticsInstance] WorkflowStatisticsInstance
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb 56 def get_instance(payload) 57 WorkflowStatisticsInstance.new( 58 @version, 59 payload, 60 workspace_sid: @solution[:workspace_sid], 61 workflow_sid: @solution[:workflow_sid], 62 ) 63 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb 67 def to_s 68 '<Twilio.Taskrouter.V1.WorkflowStatisticsPage>' 69 end