Class: Soar::Policy::AccessManager::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/soar/policy/access_manager/model.rb

Instance Method Summary collapse

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

Parameters:

  • service_identifier (String) (defaults to: nil)
  • resource_identifier (String) (defaults to: nil)
  • request (Hash) (defaults to: nil)

Returns:

  • (Boolean)


15
16
17
# File 'lib/soar/policy/access_manager/model.rb', line 15

def authorized?(service_identifier: nil, resource_identifier: nil, request: nil)
  @provider.authorized?(service_identifier, resource_identifier, request)
end