Class: Zebris::Types::Float

Inherits:
Object
  • Object
show all
Defined in:
lib/zebris/types.rb

Class Method Summary collapse

Class Method Details

.deserialize(val) ⇒ Object



75
76
77
# File 'lib/zebris/types.rb', line 75

def self.deserialize(val)
  (val && val != "") ? val.to_f : nil
end

.serialize(val) ⇒ Object



79
80
81
# File 'lib/zebris/types.rb', line 79

def self.serialize(val)
  val
end