Class: PeopleDoc::ResponseHandlers::HandleNotFound

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



18
19
20
# File 'lib/people_doc/response_handlers.rb', line 18

def call
  fail NotFound.new(@httparty.body) if @httparty.code == 404
end