Class: AzaharaSchema::FieldFormat::IntegerFormat

Inherits:
NumberFormat show all
Defined in:
lib/azahara_schema/field_format.rb

Instance Method Summary collapse

Methods inherited from NumberFormat

#aggregable?, #available_operators

Methods inherited from Base

#aggregable?, #available_operators, #searchable?

Instance Method Details

#sanitize_value(value) ⇒ Object



77
78
79
# File 'lib/azahara_schema/field_format.rb', line 77

def sanitize_value(value)
  value.to_s.present? ? value.to_s.to_i : nil
end