Class: Twilio::REST::Studio::V1

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/studio/v1.rb,
lib/twilio-ruby/rest/studio/v1/flow.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb

Defined Under Namespace

Classes: FlowContext, FlowInstance, FlowList, FlowPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V1

Initialize the V1 version of Studio



15
16
17
18
19
# File 'lib/twilio-ruby/rest/studio/v1.rb', line 15

def initialize(domain)
  super
  @version = 'v1'
  @flows = nil
end

Instance Method Details

#flows(sid = :unset) ⇒ Twilio::REST::Studio::V1::FlowContext, Twilio::REST::Studio::V1::FlowList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this Flow.

Returns:



25
26
27
28
29
30
31
32
33
# File 'lib/twilio-ruby/rest/studio/v1.rb', line 25

def flows(sid=:unset)
  if sid.nil?
    raise ArgumentError, 'sid cannot be nil'
  elsif sid == :unset
    @flows ||= FlowList.new self
  else
    FlowContext.new(self, sid)
  end
end

#to_sObject

Provide a user friendly representation



37
38
39
# File 'lib/twilio-ruby/rest/studio/v1.rb', line 37

def to_s
  '<Twilio::REST::Studio::V1>'
end