Method: Twilio::REST::Preview::Studio::FlowContext::EngagementContext::StepList#initialize

Defined in:
lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb

#initialize(version, flow_sid: nil, engagement_sid: nil) ⇒ StepList

Initialize the StepList

Parameters:

  • version (Version)

    Version that contains the resource

  • flow_sid (String) (defaults to: nil)

    The unique SID identifier of the Flow.

  • engagement_sid (String) (defaults to: nil)

    The unique SID identifier of the Engagement.



22
23
24
25
26
27
28
# File 'lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb', line 22

def initialize(version, flow_sid: nil, engagement_sid: nil)
  super(version)

  # Path Solution
  @solution = {flow_sid: flow_sid, engagement_sid: engagement_sid}
  @uri = "/Flows/#{@solution[:flow_sid]}/Engagements/#{@solution[:engagement_sid]}/Steps"
end