class Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkflowContext::WorkflowRealTimeStatisticsPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the WorkflowRealTimeStatisticsPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [WorkflowRealTimeStatisticsPage] WorkflowRealTimeStatisticsPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_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 WorkflowRealTimeStatisticsInstance
@param [Hash] payload Payload response from the API @return [WorkflowRealTimeStatisticsInstance] WorkflowRealTimeStatisticsInstance
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb 56 def get_instance(payload) 57 WorkflowRealTimeStatisticsInstance.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_real_time_statistics.rb 67 def to_s 68 '<Twilio.Taskrouter.V1.WorkflowRealTimeStatisticsPage>' 69 end