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

Public Class Methods

new(version, flow_sid, engagement_sid) click to toggle source

Initialize the EngagementContextContext @param [Version] version Version that contains the resource @param [String] flow_sid The SID of the Flow. @param [String] engagement_sid The SID of the Engagement. @return [EngagementContextContext] EngagementContextContext

Calls superclass method Twilio::REST::InstanceContext::new
   # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
77 def initialize(version, flow_sid, engagement_sid)
78   super(version)
79 
80   # Path Solution
81   @solution = {flow_sid: flow_sid, engagement_sid: engagement_sid, }
82   @uri = "/Flows/#{@solution[:flow_sid]}/Engagements/#{@solution[:engagement_sid]}/Context"
83 end

Public Instance Methods

fetch() click to toggle source

Fetch the EngagementContextInstance @return [EngagementContextInstance] Fetched EngagementContextInstance

   # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
88 def fetch
89   payload = @version.fetch('GET', @uri)
90 
91   EngagementContextInstance.new(
92       @version,
93       payload,
94       flow_sid: @solution[:flow_sid],
95       engagement_sid: @solution[:engagement_sid],
96   )
97 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
108 def inspect
109   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
110   "#<Twilio.Studio.V1.EngagementContextContext #{context}>"
111 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb
101 def to_s
102   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
103   "#<Twilio.Studio.V1.EngagementContextContext #{context}>"
104 end