Sha256: 1f4cdc0a995e1ce682b4aa26df839170b8fc7d591c79b313dd2e196363c821c2

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

# -*- encoding : utf-8 -*-
module RademadeAdmin
  module Search
    module Conditions
      class Where

        attr_reader :type, :parts

        def initialize(type)
          @type = type
          @parts = []
        end

        def add(field, value)
          @parts << {
            :field => field,
            :value => value
          }
        end

        def sub_add(where)
          @parts << where
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rademade_admin-0.0.3 app/services/search/conditions/part/where.rb
rademade_admin-0.0.2 app/services/search/conditions/part/where.rb