class ParamsReady::Value::DecimalCoder
Public Class Methods
coerce(input, _)
click to toggle source
# File lib/params_ready/value/coder.rb, line 111 def self.coerce(input, _) return nil if input.nil? || input == '' BigDecimal(input) end
format(value, format)
click to toggle source
# File lib/params_ready/value/coder.rb, line 116 def self.format(value, format) value.to_s('F') end