Class: ParamsReady::Query::GreaterThan

Inherits:
ComparisonPredicateOperator show all
Defined in:
lib/params_ready/query/predicate_operator.rb

Class Method Summary collapse

Methods inherited from PredicateOperator

#altn, define_operator, dup

Class Method Details

.test(record, attribute_name, value) ⇒ Object



90
91
92
93
# File 'lib/params_ready/query/predicate_operator.rb', line 90

def self.test(record, attribute_name, value)
  attribute = record.send attribute_name
  attribute > value
end