Class: SchemaRegistry::Schema::Base
- Inherits:
-
Object
- Object
- SchemaRegistry::Schema::Base
show all
- Defined in:
- lib/schema_registry_client/schema/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.schema_type ⇒ String
16
17
18
|
# File 'lib/schema_registry_client/schema/base.rb', line 16
def self.schema_type
raise MissingImplementationError, "Subclasses must implement schema_type"
end
|
Instance Method Details
#decode(_stream, _schema_text) ⇒ Object
31
32
33
|
# File 'lib/schema_registry_client/schema/base.rb', line 31
def decode(_stream, _schema_text)
raise MissingImplementationError, "Subclasses must implement decode"
end
|
#dependencies(_message) ⇒ Hash<String, String>
37
38
39
|
# File 'lib/schema_registry_client/schema/base.rb', line 37
def dependencies(_message)
{}
end
|
#encode(_message, _stream, schema_name: nil) ⇒ Object
23
24
25
|
# File 'lib/schema_registry_client/schema/base.rb', line 23
def encode(_message, _stream, schema_name: nil)
raise MissingImplementationError, "Subclasses must implement encode"
end
|
#schema_text(_message, schema_name: nil) ⇒ String
11
12
13
|
# File 'lib/schema_registry_client/schema/base.rb', line 11
def schema_text(_message, schema_name: nil)
raise MissingImplementationError, "Subclasses must implement schema_text"
end
|