class NumberField
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Field::new
# File lib/quickbase_record/fields/number_field.rb, line 4 def initialize(*args) super(*args) end
Public Instance Methods
convert(value)
click to toggle source
# File lib/quickbase_record/fields/number_field.rb, line 8 def convert(value) value.match(/\./) ? value.to_f : value.to_i end