Class: Uorm::Attributes::Type::Float

Inherits:
Object
  • Object
show all
Defined in:
lib/uorm/attributes/type.rb

Class Method Summary collapse

Class Method Details

.as_json(value) ⇒ Object



35
36
37
# File 'lib/uorm/attributes/type.rb', line 35

def as_json value
  convert value
end

.convert(value) ⇒ Object



31
32
33
# File 'lib/uorm/attributes/type.rb', line 31

def convert value
  value.to_f
end