Class: Soar::Policy::AccessManager::Model
- Inherits:
-
Object
- Object
- Soar::Policy::AccessManager::Model
- Defined in:
- lib/soar/policy/access_manager/model.rb
Instance Method Summary collapse
- #authorized?(service_identifier: nil, resource_identifier: nil, request: nil) ⇒ Boolean
-
#initialize(provider) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(provider) ⇒ Model
Returns a new instance of Model.
6 7 8 |
# File 'lib/soar/policy/access_manager/model.rb', line 6 def initialize(provider) @provider = provider end |
Instance Method Details
#authorized?(service_identifier: nil, resource_identifier: nil, request: nil) ⇒ Boolean
15 16 17 |
# File 'lib/soar/policy/access_manager/model.rb', line 15 def (service_identifier: nil, resource_identifier: nil, request: nil) @provider.(service_identifier, resource_identifier, request) end |