class Twilio::REST::Studio::V2

Public Class Methods

new(domain) click to toggle source

Initialize the V2 version of Studio

Calls superclass method Twilio::REST::Version::new
   # File lib/twilio-ruby/rest/studio/v2.rb
15 def initialize(domain)
16   super
17   @version = 'v2'
18   @flows = nil
19   @flow_validate = nil
20 end

Public Instance Methods

flow_validate() click to toggle source

@return [Twilio::REST::Studio::V2::FlowValidateContext]

   # File lib/twilio-ruby/rest/studio/v2.rb
39 def flow_validate
40   @flow_validate ||= FlowValidateList.new self
41 end
flows(sid=:unset) click to toggle source

@param [String] sid The SID of the Flow resource to fetch. @return [Twilio::REST::Studio::V2::FlowContext] if sid was passed. @return [Twilio::REST::Studio::V2::FlowList]

   # File lib/twilio-ruby/rest/studio/v2.rb
26 def flows(sid=:unset)
27   if sid.nil?
28       raise ArgumentError, 'sid cannot be nil'
29   end
30   if sid == :unset
31       @flows ||= FlowList.new self
32   else
33       FlowContext.new(self, sid)
34   end
35 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/studio/v2.rb
45 def to_s
46   '<Twilio::REST::Studio::V2>'
47 end