Sha256: 31ac9b9a78321b23b69c59a7148749835305f0b32054309ff3ca43666df51d27

Contents?: true

Size: 1.19 KB

Versions: 80

Compression:

Stored size: 1.19 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_validate
        self.v2.flow_validate()
      end

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

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
twilio-ruby-5.77.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.76.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.75.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.74.5 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.74.4 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.74.3 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.74.2 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.74.1 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.74.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.73.4 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.73.2 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.73.1 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.73.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.72.1 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.72.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.71.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.70.1 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.70.0 lib/twilio-ruby/rest/studio.rb
twilio-ruby-5.69.0 lib/twilio-ruby/rest/studio.rb