class Twilio::REST::Studio::V1::FlowContext::EngagementPage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/studio/v1/flow/engagement.rb
149 def initialize(version, response, solution)
150   super(version, response)
151 
152   # Path Solution
153   @solution = solution
154 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/studio/v1/flow/engagement.rb
160 def get_instance(payload)
161   EngagementInstance.new(@version, payload, flow_sid: @solution[:flow_sid], )
162 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/engagement.rb
166 def to_s
167   '<Twilio.Studio.V1.EngagementPage>'
168 end