class Twilio::REST::Studio::V1
Public Class Methods
new(domain)
click to toggle source
Initialize the V1
version of Studio
Calls superclass method
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/studio/v1.rb 15 def initialize(domain) 16 super 17 @version = 'v1' 18 @flows = nil 19 end
Public Instance Methods
flows(sid=:unset)
click to toggle source
@param [String] sid The SID of the Flow resource to fetch. @return [Twilio::REST::Studio::V1::FlowContext] if sid was passed. @return [Twilio::REST::Studio::V1::FlowList]
# File lib/twilio-ruby/rest/studio/v1.rb 25 def flows(sid=:unset) 26 if sid.nil? 27 raise ArgumentError, 'sid cannot be nil' 28 end 29 if sid == :unset 30 @flows ||= FlowList.new self 31 else 32 FlowContext.new(self, sid) 33 end 34 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio/v1.rb 38 def to_s 39 '<Twilio::REST::Studio::V1>' 40 end