class HTTParty::Request

def credentials

def credentials
  (options[:basic_auth] || options[:digest_auth]).to_hash
end