Class: Yes::Core::Authorization::ReadRequestAuthorizer Abstract
- Inherits:
-
Object
- Object
- Yes::Core::Authorization::ReadRequestAuthorizer
- Defined in:
- lib/yes/core/authorization/read_request_authorizer.rb
Overview
This class is abstract.
Read request authorizer base class. Subclass and override call method to implement
a custom authorizer.
Direct Known Subclasses
Constant Summary collapse
Class Method Summary collapse
-
.call(_params, _auth_data) ⇒ Boolean
Implement this method to authorize a read request.
Class Method Details
.call(_params, _auth_data) ⇒ Boolean
Implement this method to authorize a read request. Needs to return true if read request is authorized, otherwise raise NotAuthorized.
17 18 19 |
# File 'lib/yes/core/authorization/read_request_authorizer.rb', line 17 def call(_params, _auth_data) raise NotAuthorized end |