Sha256: 7d2936566753051d7733013ae257ba22eb6357392b13261080783a14b32b5d61

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

module Casino
  class Intersection
    module Match
      class Equivalence
        attr_accessor :document, :field, :key, :value

        def initialize(key, value, document, field)
          self.key = key
          self.document = document
          self.field = field
          self.value = value
        end

        def eligible?
          true
        end

        def evaluate
          value == field
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-casino-0.0.4 lib/casino/intersection/match/equivalence.rb
mongoid-casino-0.0.3 lib/casino/intersection/match/equivalence.rb
mongoid-casino-0.0.2 lib/casino/intersection/match/equivalence.rb
mongoid-casino-0.0.1 lib/casino/intersection/match/equivalence.rb