class Twilio::REST::Studio::V2::FlowContext::ExecutionPage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the ExecutionPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [ExecutionPage] ExecutionPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/studio/v2/flow/execution.rb
177 def initialize(version, response, solution)
178   super(version, response)
179 
180   # Path Solution
181   @solution = solution
182 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of ExecutionInstance @param [Hash] payload Payload response from the API @return [ExecutionInstance] ExecutionInstance

    # File lib/twilio-ruby/rest/studio/v2/flow/execution.rb
188 def get_instance(payload)
189   ExecutionInstance.new(@version, payload, flow_sid: @solution[:flow_sid], )
190 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/studio/v2/flow/execution.rb
194 def to_s
195   '<Twilio.Studio.V2.ExecutionPage>'
196 end