Class: Anchor::SchemaGenerator
- Inherits:
-
Object
- Object
- Anchor::SchemaGenerator
- Defined in:
- lib/anchor/schema_generator.rb
Direct Known Subclasses
JSONSchema::SchemaGenerator, TypeScript::MultifileSchemaGenerator, TypeScript::SchemaGenerator
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(register:, context:, include_all_fields:, exclude_fields:) ⇒ SchemaGenerator
constructor
A new instance of SchemaGenerator.
Constructor Details
#initialize(register:, context:, include_all_fields:, exclude_fields:) ⇒ SchemaGenerator
Returns a new instance of SchemaGenerator.
3 4 5 6 7 8 |
# File 'lib/anchor/schema_generator.rb', line 3 def initialize(register:, context:, include_all_fields:, exclude_fields:) @register = register @context = context @include_all_fields = include_all_fields @exclude_fields = exclude_fields end |
Class Method Details
.call ⇒ Object
10 11 12 |
# File 'lib/anchor/schema_generator.rb', line 10 def self.call(...) new(...).call end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/anchor/schema_generator.rb', line 14 def call raise NotImplementedError end |