Class: PeopleDoc::ResponseHandlers::V2::HandleBadRequest
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- PeopleDoc::ResponseHandlers::V2::HandleBadRequest
- Defined in:
- lib/people_doc/response_handlers.rb
Instance Method Summary collapse
Methods inherited from BaseHandler
Constructor Details
This class inherits a constructor from PeopleDoc::ResponseHandlers::BaseHandler
Instance Method Details
#call ⇒ Object
100 101 102 103 104 105 106 |
# File 'lib/people_doc/response_handlers.rb', line 100 def call return unless @httparty.code == 400 = @httparty.parsed_response['error_description'] fail BadRequest.new(, @httparty.parsed_response) end |