Module: MarkMapper::Extensions::Float

Included in:
Float
Defined in:
lib/mark_mapper/extensions/float.rb

Instance Method Summary collapse

Instance Method Details

#to_marklogic(value) ⇒ Object


5
6
7
# File 'lib/mark_mapper/extensions/float.rb', line 5

def to_marklogic(value)
  value.blank? ? nil : value.to_f
end

#xs_typeObject


9
10
11
# File 'lib/mark_mapper/extensions/float.rb', line 9

def xs_type
  "float"
end