Class: JSON::Schema::MinimumAttribute
- Inherits:
-
NumericLimitAttribute
- Object
- Attribute
- LimitAttribute
- NumericLimitAttribute
- JSON::Schema::MinimumAttribute
- Defined in:
- lib/json-schema/attributes/limits/minimum.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Attribute
Attribute::TYPE_CLASS_MAPPINGS
Class Method Summary collapse
Methods inherited from NumericLimitAttribute
acceptable_type, error_message
Methods inherited from LimitAttribute
acceptable_type, error_message, invalid?, limit, validate, value
Methods inherited from Attribute
build_fragment, data_valid_for_type?, type_of_data, validate, validation_error, validation_errors
Class Method Details
.exclusive?(schema) ⇒ Boolean
10 11 12 |
# File 'lib/json-schema/attributes/limits/minimum.rb', line 10 def self.exclusive?(schema) schema['exclusiveMinimum'] end |
.limit_name ⇒ Object
6 7 8 |
# File 'lib/json-schema/attributes/limits/minimum.rb', line 6 def self.limit_name 'minimum' end |