Class: Twilio::REST::Studio

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/studio.rb,
lib/twilio-ruby/rest/studio/v1.rb,
lib/twilio-ruby/rest/studio/v2.rb,
lib/twilio-ruby/rest/studio/v1/flow.rb,
lib/twilio-ruby/rest/studio/v2/flow.rb,
lib/twilio-ruby/rest/studio/v2/flow_validate.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution.rb,
lib/twilio-ruby/rest/studio/v2/flow/execution.rb,
lib/twilio-ruby/rest/studio/v2/flow/test_user.rb,
lib/twilio-ruby/rest/studio/v1/flow/engagement.rb,
lib/twilio-ruby/rest/studio/v2/flow/flow_revision.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/v2/flow/execution/execution_step.rb,
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb,
lib/twilio-ruby/rest/studio/v2/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,
lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb

Defined Under Namespace

Classes: V1, V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Studio

Initialize the Studio Domain


14
15
16
17
18
19
20
21
22
23
24
# File 'lib/twilio-ruby/rest/studio.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://studio.twilio.com'
  @host = 'studio.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
  @v2 = nil
end

Instance Method Details

#flow_validateTwilio::REST::Studio::V2::FlowValidateInstance


49
50
51
# File 'lib/twilio-ruby/rest/studio.rb', line 49

def flow_validate
  self.v2.flow_validate()
end

#flows(sid = :unset) ⇒ Twilio::REST::Studio::V2::FlowInstance, Twilio::REST::Studio::V2::FlowList

Parameters:

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

    The unique string that we created to identify the Flow resource.

Returns:


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

def flows(sid=:unset)
  self.v2.flows(sid)
end

#to_sObject

Provide a user friendly representation


55
56
57
# File 'lib/twilio-ruby/rest/studio.rb', line 55

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

#v1Object

Version v1 of studio


28
29
30
# File 'lib/twilio-ruby/rest/studio.rb', line 28

def v1
  @v1 ||= V1.new self
end

#v2Object

Version v2 of studio


34
35
36
# File 'lib/twilio-ruby/rest/studio.rb', line 34

def v2
  @v2 ||= V2.new self
end