module CrSerializer(T)
Included Modules
Direct including types
Defined in:
CrSerializer.crCrSerializer/base.cr
CrSerializer/validator.cr
Class Method Summary
-
.version : String | Nil
Version used as the comparator for the
since
anduntil
serialization options. -
.version=(version : String | Nil)
Version used as the comparator for the
since
anduntil
serialization options.
Instance Method Summary
- #assertions(*args, **options)
- #assertions(*args, **options, &)
- #invalid_properties(*args, **options)
- #invalid_properties(*args, **options, &)
- #valid?(*args, **options)
- #valid?(*args, **options, &)
-
#validate : Nil
Rerun all assertions on the current state of the object
- #validate(*args, **options)
- #validate(*args, **options, &)
- #validation_errors(*args, **options)
- #validation_errors(*args, **options, &)
Class Method Detail
def self.version : String | Nil
#
Version used as the comparator for the since
and until
serialization options.
Should be set in your app's main file, such as:
CrSerializer.version = MyApp::VERSION
NOTE Must be a SemanticVersion
string
def self.version=(version : String | Nil)
#
Version used as the comparator for the since
and until
serialization options.
Should be set in your app's main file, such as:
CrSerializer.version = MyApp::VERSION
NOTE Must be a SemanticVersion
string