Class: Db2Query::Type::Integer

Inherits:
Value
  • Object
show all
Defined in:
lib/db2_query/type/integer.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/integer.rb', line 10

def deserialize(value)
  value.to_i
end

#typeObject



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

def type
  :integer
end