Class: PeopleDoc::ResponseHandlers::HandleBadRequest
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- PeopleDoc::ResponseHandlers::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
11 12 13 14 |
# File 'lib/people_doc/response_handlers.rb', line 11 def call fail BadRequest.new(@httparty.body, @httparty.parsed_response) \ if @httparty.code == 400 end |