Class: Compel::Builder::Integer

Inherits:
Schema
  • Object
show all
Includes:
CommonValue
Defined in:
lib/compel/builder/integer.rb

Instance Attribute Summary

Attributes inherited from Schema

#options, #type

Instance Method Summary collapse

Methods included from CommonValue

#coerce_value!, #coerce_values_ary!, #in, #max, #min, #raise_array_error, #raise_array_values_error, #raise_value_error, #range

Methods inherited from Schema

#build_option, #default_options, #default_value, human_name, #required?, #validate

Methods included from Common

#coerce_if_proc, #default, #if, #is, #length, #max_length, #min_length, #required

Constructor Details

#initializeInteger

Returns a new instance of Integer.



8
9
10
# File 'lib/compel/builder/integer.rb', line 8

def initialize
  super(Coercion::Integer)
end