Class: AdpClient::UnknownErrorHandler
- Inherits:
-
BaseErrorHandler
- Object
- BaseErrorHandler
- AdpClient::UnknownErrorHandler
- Defined in:
- lib/adp_client.rb
Instance Method Summary collapse
Methods inherited from BaseErrorHandler
Constructor Details
This class inherits a constructor from AdpClient::BaseErrorHandler
Instance Method Details
#error ⇒ Object
307 308 309 |
# File 'lib/adp_client.rb', line 307 def error HTTParty::Error.new("Code #{@httparty.code} - #{@httparty.body}") end |
#fail? ⇒ Boolean
311 312 313 |
# File 'lib/adp_client.rb', line 311 def fail? !@httparty.response.is_a?(Net::HTTPSuccess) end |