Sha256: 809c993020d28534b4947ce55c7a3ea733e0027d1bd8d8ec5e11034c8380f4e3

Contents?: true

Size: 1019 Bytes

Versions: 7

Compression:

Stored size: 1019 Bytes

Contents

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

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 A 34 character string that uniquely identifies this Flow.
        # @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

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-5.25.4 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.25.3 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.25.2 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.25.1 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.25.0 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.24.0 lib/twilio-ruby/rest/studio/v1.rb
twilio-ruby-5.23.1 lib/twilio-ruby/rest/studio/v1.rb