Skip to content

Latest commit

 

History

History
114 lines (42 loc) · 1.05 KB

FloatConverter.rst

File metadata and controls

114 lines (42 loc) · 1.05 KB

FloatConverter

Constants

Files

Methods

.convert_type

def convert_type
  Float
end

.converted?

def converted?(value)
  value.is_a?(db_type)
end

.db_type

def db_type
  Float
end

.to_db

def to_db(value)
  value.to_f
end

.to_ruby

def to_db(value)
  value.to_f
end