Class: EventEngine::SchemaCatalog
- Inherits:
-
Object
- Object
- EventEngine::SchemaCatalog
- Defined in:
- lib/event_engine/schema_catalog.rb
Instance Method Summary collapse
-
#initialize(schema_registry:, subject_registry:) ⇒ SchemaCatalog
constructor
A new instance of SchemaCatalog.
- #to_markdown ⇒ Object
Constructor Details
#initialize(schema_registry:, subject_registry:) ⇒ SchemaCatalog
Returns a new instance of SchemaCatalog.
3 4 5 6 |
# File 'lib/event_engine/schema_catalog.rb', line 3 def initialize(schema_registry:, subject_registry:) @schema_registry = schema_registry @subject_registry = subject_registry end |
Instance Method Details
#to_markdown ⇒ Object
8 9 10 |
# File 'lib/event_engine/schema_catalog.rb', line 8 def to_markdown (["# Event Catalog"] + event_sections).join("\n\n") + "\n" end |