class Twilio::REST::Studio
Public Class Methods
new(twilio)
click to toggle source
Calls superclass method
Twilio::REST::Domain::new
# File lib/twilio-ruby/rest/studio.rb 14 def initialize(twilio) 15 super 16 17 @base_url = 'https://studio.twilio.com' 18 @host = 'studio.twilio.com' 19 @port = 443 20 21 # Versions 22 @v1 = nil 23 @v2 = nil 24 end
Public Instance Methods
flow_validate()
click to toggle source
@return [Twilio::REST::Studio::V2::FlowValidateInstance]
# File lib/twilio-ruby/rest/studio.rb 49 def flow_validate 50 self.v2.flow_validate() 51 end
flows(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Flow
resource.
@return [Twilio::REST::Studio::V2::FlowInstance] if sid was passed. @return [Twilio::REST::Studio::V2::FlowList]
# File lib/twilio-ruby/rest/studio.rb 43 def flows(sid=:unset) 44 self.v2.flows(sid) 45 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio.rb 55 def to_s 56 '#<Twilio::REST::Studio>' 57 end
v1()
click to toggle source
Version
v1 of studio
# File lib/twilio-ruby/rest/studio.rb 28 def v1 29 @v1 ||= V1.new self 30 end
v2()
click to toggle source
Version
v2 of studio
# File lib/twilio-ruby/rest/studio.rb 34 def v2 35 @v2 ||= V2.new self 36 end