Class: SmartCore::Schema
- Inherits:
-
Object
- Object
- SmartCore::Schema
- Includes:
- DSL
- Defined in:
- lib/smart_core/schema.rb,
lib/smart_core/schema/errors.rb,
lib/smart_core/schema/version.rb
Overview
rubocop:disable Style/StaticClass
Defined Under Namespace
Modules: DSL, KeyControl Classes: Checker, Result
Constant Summary collapse
- Error =
Class.new(SmartCore::Error)
- ArgumentError =
Class.new(SmartCore::ArgumentError)
- VERSION =
'0.11.0'
Instance Method Summary collapse
Methods included from DSL
Instance Method Details
#valid?(verifiable_hash) ⇒ Boolean
29 30 31 |
# File 'lib/smart_core/schema.rb', line 29 def valid?(verifiable_hash) validate(verifiable_hash).success? end |
#validate(verifiable_hash) ⇒ SmartCore::Schema::Result
38 39 40 |
# File 'lib/smart_core/schema.rb', line 38 def validate(verifiable_hash) schema_checker.check!(verifiable_hash) end |