Class: PeopleDoc::ResponseHandlers::HandleUnauthorized

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



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