Sha256: 67730c11d0604fa08c48ba0e3197e17003b3abf49288ef09cb1f0afb5fcdd537

Contents?: true

Size: 1.18 KB

Versions: 7

Compression:

Stored size: 1.18 KB

Contents

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

module Twilio
  module REST
    class Studio < Domain
      ##
      # Initialize the Studio Domain
      def initialize(twilio)
        super

        @base_url = 'https://studio.twilio.com'
        @host = 'studio.twilio.com'
        @port = 443

        # Versions
        @v1 = nil
        @v2 = nil
      end

      ##
      # Version v1 of studio
      def v1
        @v1 ||= V1.new self
      end

      ##
      # Version v2 of studio
      def v2
        @v2 ||= V2.new self
      end

      ##
      # @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]
      def flows(sid=:unset)
        self.v2.flows(sid)
      end

      ##
      # @return [Twilio::REST::Studio::V2::FlowValidateInstance]
      def flow_valid
        self.v2.flow_valid()
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-5.33.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.32.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.31.6 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.31.5 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.31.4 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.31.3 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.31.2 lib/twilio-ruby/rest/studio.rb