Class: JSONSkooma::Metaschema
- Inherits:
-
JSONSchema
- Object
- SimpleDelegator
- JSONNode
- JSONSchema
- JSONSkooma::Metaschema
- Defined in:
- lib/json_skooma/metaschema.rb
Instance Attribute Summary collapse
-
#core_vocabulary ⇒ Object
Returns the value of attribute core_vocabulary.
-
#default_vocabularies ⇒ Object
Returns the value of attribute default_vocabularies.
-
#kw_classes ⇒ Object
readonly
Returns the value of attribute kw_classes.
Attributes inherited from JSONSchema
#cache_id, #metaschema_uri, #registry, #uri
Attributes inherited from JSONNode
Instance Method Summary collapse
-
#initialize(value, core_vocabulary, *default_vocabularies, **options) ⇒ Metaschema
constructor
A new instance of Metaschema.
- #kw_class(key) ⇒ Object
Methods inherited from JSONSchema
#base_uri, #canonical_uri, #evaluate, #metaschema, #parent_schema, #resolve_ref, #resolve_references, #resolve_uri, #validate
Methods inherited from JSONNode
#!=, #==, #[], #path, #root, #value
Constructor Details
#initialize(value, core_vocabulary, *default_vocabularies, **options) ⇒ Metaschema
Returns a new instance of Metaschema.
8 9 10 11 12 13 |
# File 'lib/json_skooma/metaschema.rb', line 8 def initialize(value, core_vocabulary, *default_vocabularies, **) @core_vocabulary = core_vocabulary @default_vocabularies = default_vocabularies @kw_classes = {} super(value, cache_id: "__meta__", **) end |
Instance Attribute Details
#core_vocabulary ⇒ Object
Returns the value of attribute core_vocabulary.
5 6 7 |
# File 'lib/json_skooma/metaschema.rb', line 5 def core_vocabulary @core_vocabulary end |
#default_vocabularies ⇒ Object
Returns the value of attribute default_vocabularies.
5 6 7 |
# File 'lib/json_skooma/metaschema.rb', line 5 def default_vocabularies @default_vocabularies end |
#kw_classes ⇒ Object (readonly)
Returns the value of attribute kw_classes.
6 7 8 |
# File 'lib/json_skooma/metaschema.rb', line 6 def kw_classes @kw_classes end |