Sha256: 636cd720e3f60fef3d652ca11c8a057041197dd823d7938902a2a0a687a52ee2

Contents?: true

Size: 224 Bytes

Versions: 10

Compression:

Stored size: 224 Bytes

Contents

class Agilibox::SmallData::FilterStrategyByDateBegin < ::Agilibox::SmallData::FilterStrategyByKeyValue
  def apply(query, value)
    value = Time.parse(value).beginning_of_day
    query.where("#{key} >= ?", value)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
agilibox-1.0.9 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.8 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.7 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.6 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.5 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.4 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.3 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.2 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.1 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.0.0 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb