class Gems::Authenticator
Base class for authentication (no authentication) @api private
Public Instance Methods
Generate the authentication headers for a request
@api private @param _request [Net::HTTPRequest] the HTTP request @return [Hash{String => String}] the authentication headers (empty) @example Generate empty authentication headers
authenticator = Gems::Authenticator.new authenticator.header(request)
# File lib/gems/authenticator.rb, line 19 def header(_request) {} end
Summarize the authenticator for the console
@api private @return [String] the summary, which never includes credentials @example Inspect an authenticator
authenticator.inspect # => #<Gems::Authenticator>
# File lib/gems/authenticator.rb, line 29 def inspect "#<#{self.class}>" end