Class: BMC::Filter::ByDateBegin
- Inherits:
-
ByKeyValue
- Object
- ByKeyValue
- BMC::Filter::ByDateBegin
- Defined in:
- app/filters/bmc/filter/by_date_begin.rb
Instance Attribute Summary
Attributes inherited from ByKeyValue
Instance Method Summary collapse
Methods inherited from ByKeyValue
Constructor Details
This class inherits a constructor from BMC::Filter::ByKeyValue
Instance Method Details
#call(query, value) ⇒ Object
2 3 4 5 6 |
# File 'app/filters/bmc/filter/by_date_begin.rb', line 2 def call(query, value) value = Date.parse(value) column = column_for(query) query.where("#{column} >= ?", value) end |