Class: Opto::Types::Integer
- Inherits:
-
Opto::Type
- Object
- Opto::Type
- Opto::Types::Integer
- Defined in:
- lib/opto/types/integer.rb
Overview
A number.
Options
:min - minimum allowed value (default 0, can be negative)
:max - maximum allowed value
:nil_is_zero : set to true if you want to turn a null value into 0
Constant Summary
Constants inherited from Opto::Type
Instance Attribute Summary
Attributes inherited from Opto::Type
Method Summary
Methods inherited from Opto::Type
#errors, for, inherited, #initialize, #required?, #sanitize, sanitizer, sanitizers, true_when, #type, type, types, #valid?, #validate, validator, validators
Constructor Details
This class inherits a constructor from Opto::Type