Class: PeopleDoc::ResponseHandlers::HandleUnauthorized
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- PeopleDoc::ResponseHandlers::HandleUnauthorized
- 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
24 25 26 27 |
# File 'lib/people_doc/response_handlers.rb', line 24 def call fail Unauthorized.new(@httparty.body) \ if [401, 403].include?(@httparty.code) end |