Class: Arkaan::Rulesets::Fields::Integer

Inherits:
Arkaan::Rulesets::Field show all
Defined in:
lib/arkaan/rulesets/fields/integer.rb

Overview

An integer field can have a minimum and maximum value.

Author:

Instance Attribute Summary

Attributes inherited from Arkaan::Rulesets::Field

#blueprint, #data, #name

Instance Method Summary collapse

Methods inherited from Arkaan::Rulesets::Field

#check_type, #default_options, #name_unicity, #options_validity, #type

Instance Method Details

#validate_optionsObject



7
8
9
10
# File 'lib/arkaan/rulesets/fields/integer.rb', line 7

def validate_options
  check_type(:max, 'Integer')
  check_type(:min, 'Integer')
end