Sha256: 9d3de676085587b78283c015d08f2df451a4a0060fc71b80e8650d6d42749a92
Contents?: true
Size: 529 Bytes
Versions: 5
Compression:
Stored size: 529 Bytes
Contents
module CabbageDoc class Client include HTTParty class << self def new(auth) Class.new(self) do |klass| klass.headers "User-Agent" => auth.user_agent klass.base_uri auth.uri if auth.type == :basic klass.basic_auth auth.username, auth.password elsif auth.token klass.headers "Authorization" => "#{auth.type.to_s.capitalize} #{auth.token}" end debug_output $stdout if auth.verbose end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems