Sha256: 2bc72c544d5cf5bbcb96f3a4442d80c762209457aa0041de14093e91b8a72ddc

Contents?: true

Size: 494 Bytes

Versions: 32

Compression:

Stored size: 494 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Matchers

    # Performs Greater than or equal to matching.
    class Gte < Default

      # Return true if the attribute is greater than or equal to the value.
      #
      # @example Do the values match?
      #   matcher.matches?({ :key => 10 })
      #
      # @param [ Hash ] value The values to check.
      #
      # @return [ true, false ] If a value exists.
      def matches?(value)
        determine(value, :>=)
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
mongoid-3.1.7 lib/mongoid/matchers/gte.rb
mongoid-3.1.6 lib/mongoid/matchers/gte.rb
mongoid-3.1.5 lib/mongoid/matchers/gte.rb
mongoid-3.1.4 lib/mongoid/matchers/gte.rb
mongoid-3.1.3 lib/mongoid/matchers/gte.rb
mongoid-3.1.2 lib/mongoid/matchers/gte.rb
mongoid-3.0.23 lib/mongoid/matchers/gte.rb
mongoid-3.1.1 lib/mongoid/matchers/gte.rb
mongoid-3.1.0 lib/mongoid/matchers/gte.rb
mongoid-3.0.22 lib/mongoid/matchers/gte.rb
mongoid-3.0.21 lib/mongoid/matchers/gte.rb
mongoid-3.0.20 lib/mongoid/matchers/gte.rb
mongoid-3.0.19 lib/mongoid/matchers/gte.rb
mongoid-3.0.18 lib/mongoid/matchers/gte.rb
mongoid-3.0.17 lib/mongoid/matchers/gte.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.16/lib/mongoid/matchers/gte.rb
mongoid-3.0.16 lib/mongoid/matchers/gte.rb
mongoid-3.0.15 lib/mongoid/matchers/gte.rb
mongoid-3.0.14 lib/mongoid/matchers/gte.rb
mongoid-3.0.13 lib/mongoid/matchers/gte.rb