Class: AdpClient::UnknownErrorHandler

Inherits:
BaseErrorHandler show all
Defined in:
lib/adp_client.rb

Instance Method Summary collapse

Methods inherited from BaseErrorHandler

#call, #initialize

Constructor Details

This class inherits a constructor from AdpClient::BaseErrorHandler

Instance Method Details

#errorObject



307
308
309
# File 'lib/adp_client.rb', line 307

def error
  HTTParty::Error.new("Code #{@httparty.code} - #{@httparty.body}")
end

#fail?Boolean

Returns:

  • (Boolean)


311
312
313
# File 'lib/adp_client.rb', line 311

def fail?
  !@httparty.response.is_a?(Net::HTTPSuccess)
end