class Thumbtack::Types::Integer
Handles validation of Integer
types as the values supported by Pinboard
@api private
Constants
- MAX
The maximum allowable integer
- MIN
The minimum allowable integer
Public Class Methods
validate(value)
click to toggle source
Validate something is a valid integer parameter
@param [Integer] value
the integer to validate
@return [self]
@raise [Types::ValidationError]
if the value is not between 0 and 2^32
# File lib/thumbtack/types/integer.rb, line 23 def self.validate(value) RangeValidation.validate value, MIN..MAX self end