Class: Issuables::BaseFilter

Inherits:
Object
  • Object
show all
Defined in:
app/finders/issuables/base_filter.rb

Constant Summary collapse

FILTER_NONE =
'none'
FILTER_ANY =
'any'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params:, or_filters_enabled: false) ⇒ BaseFilter

Returns a new instance of BaseFilter.


10
11
12
13
# File 'app/finders/issuables/base_filter.rb', line 10

def initialize(params:, or_filters_enabled: false)
  @params = params
  @or_filters_enabled = or_filters_enabled
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.


5
6
7
# File 'app/finders/issuables/base_filter.rb', line 5

def params
  @params
end

Instance Method Details

#filterObject

Raises:

  • (NotImplementedError)

15
16
17
# File 'app/finders/issuables/base_filter.rb', line 15

def filter
  raise NotImplementedError
end