Sha256: bb01537b748dced178a4857d5ff8a9e3cc6f7f27fcea92c32e8f0f78d8c0ed7a

Contents?: true

Size: 1008 Bytes

Versions: 2

Compression:

Stored size: 1008 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 A 34 character string that uniquely identifies this
      #   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

2 entries across 2 versions & 1 rubygems

Version Path
twilio-ruby-5.15.1 lib/twilio-ruby/rest/autopilot.rb
twilio-ruby-5.15.0 lib/twilio-ruby/rest/autopilot.rb