class Superstore::Types::IntegerType
Public Instance Methods
cast_value(value)
click to toggle source
# File lib/superstore/types/integer_type.rb, line 4 def cast_value(value) if value.is_a?(String) Integer(value, 10) else Integer(value) end rescue end