# frozen_string_literal: true

module GirlScout
  DEFAULT_API_PREFIX = 'https://api.helpscout.net/v1'

  class Config
    class << self
      attr_accessor :api_key
      attr_writer :api_prefix

      def api_prefix
        @api_prefix ||= DEFAULT_API_PREFIX
      end

      def reset!
        @api_key = nil
        @api_prefix = DEFAULT_API_PREFIX
      end
    end
  end
end

# frozen_string_literal: true

module GirlScout
  DEFAULT_API_PREFIX = 'https://api.helpscout.net/v2'

  class Config
    class << self
      attr_accessor :client_id, :client_secret
      attr_writer :api_prefix

      def api_prefix
        @api_prefix ||= DEFAULT_API_PREFIX
      end

      def reset!
        @client_id = nil
        @client_secret = nil
        @api_prefix = DEFAULT_API_PREFIX
      end
    end
  end
end

Update api prefix from v1 to v2
Update api prefix from v1 to v2
