Class: OodCore::Acl::Adapter Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/ood_core/acl/adapter.rb

Overview

This class is abstract.

A class that handles the permissions for a resource through an ACL

Direct Known Subclasses

OodCore::Acl::Adapters::Group

Instance Method Summary collapse

Instance Method Details

#allow?Boolean

This method is abstract.

Subclass is expected to implement #allow?

Whether this ACL allows access for the principle

Returns:

  • (Boolean)

    whether principle is allowed

Raises:

  • (NotImplementedError)

    if subclass did not define #allow?



12
13
14
# File 'lib/ood_core/acl/adapter.rb', line 12

def allow?
  raise NotImplementedError, "subclass did not define #allow?"
end