class Cuprum::Collections::Queries::Parse

Command to parse parameters passed to Query#where into criteria.

Private Instance Methods

process(where:, strategy: nil) click to toggle source
# File lib/cuprum/collections/queries/parse.rb, line 11
def process(where:, strategy: nil)
  command = step do
    Cuprum::Collections::Queries::ParseStrategy.new.call(
      strategy: strategy,
      where:    where
    )
  end

  command.call(where: where)
end