Sha256: a99a808e42792c9b966387f423fd06868f30cb7d81ffb04f344f3d83261ae634

Contents?: true

Size: 1015 Bytes

Versions: 25

Compression:

Stored size: 1015 Bytes

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid The unique string that we created to identify the Assistant
      #   resource.
      # @return [Twilio::REST::Autopilot::V1::AssistantInstance] if sid was passed.
      # @return [Twilio::REST::Autopilot::V1::AssistantList]
      def assistants(sid=:unset)
        self.v1.assistants(sid)
      end

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
twilio-ruby-5.25.2 lib/twilio-ruby/rest/autopilot.rb
twilio-ruby-5.25.1 lib/twilio-ruby/rest/autopilot.rb
twilio-ruby-5.25.0 lib/twilio-ruby/rest/autopilot.rb
twilio-ruby-5.24.0 lib/twilio-ruby/rest/autopilot.rb
twilio-ruby-5.23.1 lib/twilio-ruby/rest/autopilot.rb