module AWS::Record::Validations
def validates_numericality_of *args
(**options)
-
:unless
(Symbol, String, Proc
) -- Specifies a method or -
:if
(Symbol, String, Proc
) -- Specifies a method or proc -
:on
(Symbol
) -- When this validation is run. -
:allow_blank
(Boolean
) -- Skip validation if the -
:allow_nil
(Boolean
) -- Skip validation if the -
:message
(String
) -- A custom error message. The default -
:odd
(Numeric
) -- If true, the value may only be -
:even
(Numeric
) -- If true, the value may only be -
:less_than_or_equal_to
(Integer
) -- Ensures the value is -
:less_than
(Numeric
) -- Ensures the attribute is less -
:greater_than_or_equal_to
(Integer
) -- Ensures the -
:greater_than
(Numeric
) -- Ensures the attribute -
:equal_to
(Integer
) -- When set the value must equal -
:only_integer
(Boolean
) -- Adds an error
Parameters:
-
options
(Hash
) -- -
attributes
() -- A list of attribute names to validate.
Overloads:
-
validates_numericality_of(*attributes, options = {}, &block)
def validates_numericality_of *args validators << NumericalityValidator.new(self, *args) end