class Neows::Attributes::SanitizedFloat

Public Instance Methods

coerce(value) click to toggle source

Coerces a string with commas to a Float

@param value [String] @return [Float]

# File lib/neows/attributes.rb, line 18
def coerce(value)
  value.delete(',').to_f
end