Class: Queryko::Filters::Min
- Inherits:
-
Base
- Object
- Base
- Queryko::Filters::Min
show all
- Defined in:
- lib/queryko/filters/min.rb
Instance Attribute Summary
Attributes inherited from Base
#as, #column_name, #feature, #field, #query_object, #table_name
Instance Method Summary
collapse
Methods inherited from Base
#call, #initialize
Instance Method Details
#build_field_from_column ⇒ Object
13
14
15
|
# File 'lib/queryko/filters/min.rb', line 13
def build_field_from_column
"#{column_name}_min"
end
|
#intialize(options = {}, feature) ⇒ Object
4
5
6
|
# File 'lib/queryko/filters/min.rb', line 4
def intialize(options = {}, feature)
super options, feature
end
|
8
9
10
|
# File 'lib/queryko/filters/min.rb', line 8
def perform(collection, token, query_object)
collection.where("#{table_name}.#{column_name} >= ?", token)
end
|