Class Index [+]

Quicksearch

DataMapper::Query::Conditions::GreaterThanOrEqualToComparison

Tests whether the value in the record is greater than, or equal to, the expected set for the Comparison.

Public Instance Methods

matches?(record) click to toggle source

Tests that the record value matches the comparison

@param [Resource, Hash] record

  The record containing the value to be matched

@return [Boolean]

@api semipublic

     # File lib/dm-core/query/conditions/comparison.rb, line 861
861:         def matches?(record)
862:           return false if expected.nil?
863:           record_value = record_value(record)
864:           !record_value.nil? && record_value >= expected
865:         end

Private Instance Methods

comparator_string() click to toggle source

@see AbstractComparison#to_s

@api private

     # File lib/dm-core/query/conditions/comparison.rb, line 872
872:         def comparator_string
873:           '>='
874:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.