Sha256: 85a76940cbee5b1a9c34fb229a9d198b9b13168e0d6e7e31b5268498cd7a77b3

Contents?: true

Size: 937 Bytes

Versions: 8

Compression:

Stored size: 937 Bytes

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /

module Twilio
  module REST
    class Studio
      class V1 < Version
        ##
        # Initialize the V1 version of Studio
        def initialize(domain)
          super
          @version = 'v1'
          @flows = nil
        end

        ##
        # @param [String] sid The sid
        # @return [Twilio::REST::Studio::V1::FlowContext] if sid was passed.
        # @return [Twilio::REST::Studio::V1::FlowList]
        def flows(sid=:unset)
          if sid.nil?
            raise ArgumentError, 'sid cannot be nil'
          elsif sid == :unset
            @flows ||= FlowList.new self
          else
            FlowContext.new(self, sid)
          end
        end

        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::Studio::V1>'
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
twilio-ruby-5.8.1 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.8.0 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.7.2 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.7.1 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.7.0 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.6.4 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.6.3 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.6.2 lib/twilio-ruby/rest/studio/v1.rb