Class: Entitlements::Data::Groups::Calculated::Filters::Base

Inherits:
Object
  • Object
show all
Includes:
Contracts::Core
Defined in:
lib/entitlements/data/groups/calculated/filters/base.rb

Constant Summary collapse

C =
::Contracts

Instance Method Summary collapse

Methods included from Contracts::Core

common, extended, included

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

Returns:

  • (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