Class: NumberField
- Inherits:
-
Field
show all
- Defined in:
- lib/quickbase_record/fields/number_field.rb
Instance Attribute Summary
Attributes inherited from Field
#fid, #field_name, #options
Instance Method Summary
collapse
Constructor Details
4
5
6
|
# File 'lib/quickbase_record/fields/number_field.rb', line 4
def initialize(*args)
super(*args)
end
|
Instance Method Details
#convert(value) ⇒ Object
8
9
10
|
# File 'lib/quickbase_record/fields/number_field.rb', line 8
def convert(value)
value.match(/\./) ? value.to_f : value.to_i
end
|