class Twilio::REST::Studio::V1::FlowContext::EngagementContext::EngagementContextPage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
43 def initialize(version, response, solution)
44   super(version, response)
45 
46   # Path Solution
47   @solution = solution
48 end

Public Instance Methods

get_instance(payload) click to toggle source

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

   # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
54 def get_instance(payload)
55   EngagementContextInstance.new(
56       @version,
57       payload,
58       flow_sid: @solution[:flow_sid],
59       engagement_sid: @solution[:engagement_sid],
60   )
61 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
65 def to_s
66   '<Twilio.Studio.V1.EngagementContextPage>'
67 end