Class: Clearly::Query::Cleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/clearly/query/cleaner.rb

Overview

Cleans a filter hash so it is ready to be built using the Composer.

Instance Method Summary collapse

Constructor Details

#initializeClearly::Query::Cleaner

Create a cleaner for a filter hash.


9
10
11
# File 'lib/clearly/query/cleaner.rb', line 9

def initialize
  self
end

Instance Method Details

#do(hash) ⇒ Hash

Get the cleaned filter hash.

Parameters:

  • hash (Hash)

Returns:

  • (Hash)

16
17
18
# File 'lib/clearly/query/cleaner.rb', line 16

def do(hash)
  clean(hash)
end