Class: ROF::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/rof/filter.rb

Overview

A placeholder implementation for an ROF::Filter.

See Also:

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Filter

Returns a new instance of Filter.

Parameters:

  • options (Hash) (defaults to: {})
    • a hash with symbol keys; used to configure the instantiation of the filter



6
7
# File 'lib/rof/filter.rb', line 6

def initialize(options = {})
end

Instance Method Details

#process(obj_list) ⇒ Array<Hash>

Performs operations on the given obj_list. This can be things like:

  • Adding new keys to the inner Hash

  • Converting placeholder values with calculated values (@see ROF::Filters::Label)

  • Other changes

Parameters:

  • obj_list (Array<Hash>)
    • An Array of Hash objects

Returns:

  • (Array<Hash>)

    a changed version of the given

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/rof/filter.rb', line 17

def process(obj_list)
  raise NotImplementedError
end