lib/creditsafe/authenticate.rb in creditsafe_connect-0.1.2 vs lib/creditsafe/authenticate.rb in creditsafe_connect-0.1.3

- old
+ new

@@ -5,10 +5,10 @@ require 'creditsafe/version' module Creditsafe class Authenticate def call(username, password) - response = post('authenticate', username: username, password: password) + response = post('authenticate', username:, password:) if response.success? response.body[:token] elsif response.status == 401 raise UnauthorizedError, response.body