This class represents data type Integer.

Methods
Public Instance methods
filter_set( value )

Values are filtered by this method when being set. Converts value to Integer or return nil if value is nil or empty. Raises ConversionError if converting fails.

# File lib/momomoto/datatype/integer.rb, line 10
      def filter_set( value )
        case value
          when nil, '' then nil
          else Integer( value )
        end
       rescue => e
        raise ConversionError, e.to_s
      end