Module: TableSchema::Constraints::Maximum
- Included in:
- TableSchema::Constraints
- Defined in:
- lib/tableschema/constraints/maximum.rb
Instance Method Summary collapse
Instance Method Details
#check_maximum ⇒ Object
5 6 7 8 9 10 |
# File 'lib/tableschema/constraints/maximum.rb', line 5 def check_maximum if @value > parse_constraint(@constraints['maximum']) raise TableSchema::ConstraintError.new("The field `#{@field['name']}` must not be more than #{@constraints['maximum']}") end true end |