Class: Opto::Types::Integer

Inherits:
Opto::Type show all
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

Opto::Type::GLOBAL_OPTIONS

Instance Attribute Summary

Attributes inherited from Opto::Type

#options

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