Class: ActiveGraph::Shared::TypeConverters::FloatConverter
Class Method Summary
collapse
converted?, #supports_array?
Class Method Details
.convert_type ⇒ Object
50
51
52
|
# File 'lib/active_graph/shared/type_converters.rb', line 50
def convert_type
Float
end
|
.db_type ⇒ Object
54
55
56
|
# File 'lib/active_graph/shared/type_converters.rb', line 54
def db_type
Float
end
|
.to_db(value) ⇒ Object
Also known as:
to_ruby
58
59
60
|
# File 'lib/active_graph/shared/type_converters.rb', line 58
def to_db(value)
value.to_f
end
|