Class: AnyVali::IntSchema

Inherits:
NumberSchema show all
Defined in:
lib/anyvali/schemas/int_schema.rb

Constant Summary

Constants inherited from NumberSchema

NumberSchema::FLOAT32_MAX, NumberSchema::FLOAT_KINDS, NumberSchema::INT_KINDS, NumberSchema::INT_RANGES

Constants inherited from Schema

Schema::RESERVED_METADATA_KEYS

Instance Attribute Summary

Attributes inherited from Schema

#coerce_config, #constraints, #custom_validators, #default_value, #has_default, #kind, #metadata

Instance Method Summary collapse

Methods inherited from NumberSchema

#exclusive_max, #exclusive_min, #max, #min, #multiple_of

Methods inherited from Schema

#coerce, #default, #describe, #export, #parse, #portable?, #refine, #safe_parse, #to_node, type_name, #with_metadata

Constructor Details

#initialize(kind: "int", **kwargs) ⇒ IntSchema

Returns a new instance of IntSchema.



5
6
7
# File 'lib/anyvali/schemas/int_schema.rb', line 5

def initialize(kind: "int", **kwargs)
  super(kind: kind, **kwargs)
end