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



21
22
23
24
25
# File 'lib/twilio-ruby/rest/studio/v1.rb', line 21

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)

    The SID of the Flow resource to fetch.

Returns:



31
32
33
34
35
36
37
38
39
40
# File 'lib/twilio-ruby/rest/studio/v1.rb', line 31

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

#to_sObject

Provide a user friendly representation



43
44
45
# File 'lib/twilio-ruby/rest/studio/v1.rb', line 43

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