Class: PeopleDoc::ResponseHandlers::HandleBadRequest

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/people_doc/response_handlers.rb

Instance Method Summary collapse

Methods inherited from BaseHandler

#initialize

Constructor Details

This class inherits a constructor from PeopleDoc::ResponseHandlers::BaseHandler

Instance Method Details

#callObject



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