Class: LHC::Auth
- Inherits:
-
Interceptor
- Object
- Interceptor
- LHC::Auth
- Defined in:
- lib/lhc/interceptors/auth.rb
Instance Attribute Summary
Attributes inherited from Interceptor
Instance Method Summary collapse
Methods inherited from Interceptor
#after_request, #after_response, #before_raw_request, #before_response, dup, #initialize, #response
Constructor Details
This class inherits a constructor from LHC::Interceptor
Instance Method Details
#before_request ⇒ Object
3 4 5 6 |
# File 'lib/lhc/interceptors/auth.rb', line 3 def before_request = request.[:auth] || {} authenticate!(request, ) end |