Sha256: 8f9b7e1fbbafedb3e3492c2d68a9c6cfaf4b6c581a94bce4f2bf386653d7efbf

Contents?: true

Size: 1.17 KB

Versions: 26

Compression:

Stored size: 1.17 KB

Contents

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

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

        ##
        # @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]
        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

        ##
        # @return [Twilio::REST::Studio::V2::FlowValidateContext]
        def flow_validate
          @flow_validate ||= FlowValidateList.new self
        end

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
twilio-ruby-5.48.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.47.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.46.1 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.46.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.45.1 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.45.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.44.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.43.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.42.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.41.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.40.4 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.40.3 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.40.2 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.40.1 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.40.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.39.3 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.39.2 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.39.1 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.39.0 lib/twilio-ruby/rest/studio/v2.rb
twilio-ruby-5.38.0 lib/twilio-ruby/rest/studio/v2.rb