Class: Entitlements::Data::Groups::Calculated::Filters::Base
- Inherits:
-
Object
- Object
- Entitlements::Data::Groups::Calculated::Filters::Base
- Includes:
- Contracts::Core
- Defined in:
- lib/entitlements/data/groups/calculated/filters/base.rb
Direct Known Subclasses
MemberOfGroup, Extras::LDAPGroup::Filters::MemberOfLDAPGroup
Constant Summary collapse
- C =
::Contracts
Instance Method Summary collapse
- #filtered?(_member) ⇒ Boolean
-
#initialize(filter:, config: {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Contracts::Core
Constructor Details
#initialize(filter:, config: {}) ⇒ Base
Returns a new instance of Base.
36 37 38 39 |
# File 'lib/entitlements/data/groups/calculated/filters/base.rb', line 36 def initialize(filter:, config: {}) @filter = filter @config = config end |
Instance Method Details
#filtered?(_member) ⇒ Boolean
22 23 24 25 26 |
# File 'lib/entitlements/data/groups/calculated/filters/base.rb', line 22 def filtered?(_member) # :nocov: raise "Must be implemented in child class" # :nocov: end |