Class: Filterameter::Filters::MinimumFilter
- Inherits:
-
ArelFilter
- Object
- ArelFilter
- Filterameter::Filters::MinimumFilter
- Defined in:
- lib/filterameter/filters/minimum_filter.rb
Overview
# Minimum Filter
Class MinimumFilter adds criteria for all values greater than or equal to a minimum.
Instance Attribute Summary
Attributes included from Errors
Instance Method Summary collapse
Methods inherited from ArelFilter
Methods included from Errors
Constructor Details
This class inherits a constructor from Filterameter::Filters::ArelFilter
Instance Method Details
#apply(query, value) ⇒ Object
9 10 11 |
# File 'lib/filterameter/filters/minimum_filter.rb', line 9 def apply(query, value) query.where(@arel_attribute.gteq(value)) end |