Sha256: 0d1c6262714927daa6263c2689f5c15716455799b1e1cba9185950c50fd5b497

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

module Rasti
  module DB
    module NQL
      module FilterConditionStrategies
        class Base

          def filter_condition_for(comparison_name, identifier, argument)
            type = type_for argument
            raise UnsupportedTypeComparison.new(type, comparison_name) unless type.respond_to?(comparison_name)
            type.public_send comparison_name, identifier, argument.value
          end

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rasti-db-4.2.0 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-4.1.1 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-4.1.0 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-4.0.0 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-3.0.0 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-2.3.3 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-2.3.2 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-2.3.1 lib/rasti/db/nql/filter_condition_strategies/base.rb
rasti-db-2.3.0 lib/rasti/db/nql/filter_condition_strategies/base.rb