Method: Twilio::REST::Studio::V1::FlowContext#initialize

Defined in:
lib/twilio-ruby/rest/studio/v1/flow.rb

#initialize(version, sid) ⇒ FlowContext

Initialize the FlowContext

Parameters:

  • version (Version)

    Version that contains the resource

  • sid (String)

    The SID of the Flow resource to fetch.



159
160
161
162
163
164
165
166
167
168
169
170
# File 'lib/twilio-ruby/rest/studio/v1/flow.rb', line 159

def initialize(version, sid)
    super(version)
    

    # Path Solution
    @solution = { sid: sid,  }
    @uri = "/Flows/#{@solution[:sid]}"

    # Dependents
    @executions = nil
    @engagements = nil
end