class Neows::Attributes::SanitizedInteger

Public Instance Methods

coerce(value) click to toggle source

Coerces a string with commas to an Integer

@param value [String] @return [Integer]

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