Class: ClickHouse::Type::IntegerType
- Defined in:
- lib/click_house/type/integer_type.rb
Instance Method Summary collapse
Instance Method Details
#cast(value) ⇒ Object
6 7 8 |
# File 'lib/click_house/type/integer_type.rb', line 6 def cast(value) Integer(value) end |
#serialize(value) ⇒ Object
10 11 12 |
# File 'lib/click_house/type/integer_type.rb', line 10 def serialize(value) value.to_i unless value.nil? end |