Class: Db2Query::Type::Decimal

Inherits:
Value
  • Object
show all
Defined in:
lib/db2_query/type/decimal.rb

Instance Attribute Summary

Attributes inherited from Value

#options

Instance Method Summary collapse

Methods inherited from Value

#initialize, #quote, #serialize, #type_name

Constructor Details

This class inherits a constructor from Db2Query::Type::Value

Instance Method Details

#deserialize(value) ⇒ Object



10
11
12
# File 'lib/db2_query/type/decimal.rb', line 10

def deserialize(value)
  value.to_f
end

#typeObject



6
7
8
# File 'lib/db2_query/type/decimal.rb', line 6

def type
  :decimal
end