Class: Kabk::SchemaRenderer
- Inherits:
-
Object
- Object
- Kabk::SchemaRenderer
- Defined in:
- lib/kabk/schema_renderer.rb
Overview
Renders the JSON Schema manifest for the protocol v1.6.0
Instance Method Summary collapse
-
#initialize(system_config: nil, validation_schema_url: nil) ⇒ SchemaRenderer
constructor
A new instance of SchemaRenderer.
- #render ⇒ Object
Constructor Details
#initialize(system_config: nil, validation_schema_url: nil) ⇒ SchemaRenderer
Returns a new instance of SchemaRenderer.
8 9 10 11 |
# File 'lib/kabk/schema_renderer.rb', line 8 def initialize(system_config: nil, validation_schema_url: nil) @system_config = system_config || default_system_config @validation_schema_url = validation_schema_url || "/schemas/admin-protocol-1.6.0.json" end |