Class: Magentwo::Filter::From

Inherits:
Compare
  • Object
show all
Defined in:
lib/filter.rb

Instance Attribute Summary

Attributes inherited from Compare

#field, #value

Instance Method Summary collapse

Methods inherited from Compare

#initialize, #to_s

Constructor Details

This class inherits a constructor from Magentwo::Filter::Compare

Instance Method Details

#to_query(idx) ⇒ Object



101
102
103
104
105
106
107
# File 'lib/filter.rb', line 101

def to_query idx
  value = case self.value
  when Time then self.value.utc
  else self.value
  end
  super idx, value:value
end