Class: Sbmt::KafkaConsumer::Serialization::BaseDeserializer
- Inherits:
-
Object
- Object
- Sbmt::KafkaConsumer::Serialization::BaseDeserializer
- Defined in:
- lib/sbmt/kafka_consumer/serialization/base_deserializer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#skip_decoding_error ⇒ Object
readonly
Returns the value of attribute skip_decoding_error.
Instance Method Summary collapse
- #call(_message) ⇒ Object
-
#initialize(skip_decoding_error: false) ⇒ BaseDeserializer
constructor
A new instance of BaseDeserializer.
Constructor Details
#initialize(skip_decoding_error: false) ⇒ BaseDeserializer
Returns a new instance of BaseDeserializer.
9 10 11 |
# File 'lib/sbmt/kafka_consumer/serialization/base_deserializer.rb', line 9 def initialize(skip_decoding_error: false) @skip_decoding_error = skip_decoding_error end |
Instance Attribute Details
#skip_decoding_error ⇒ Object (readonly)
Returns the value of attribute skip_decoding_error.
7 8 9 |
# File 'lib/sbmt/kafka_consumer/serialization/base_deserializer.rb', line 7 def skip_decoding_error @skip_decoding_error end |
Instance Method Details
#call(_message) ⇒ Object
13 14 15 |
# File 'lib/sbmt/kafka_consumer/serialization/base_deserializer.rb', line 13 def call() raise NotImplementedError, "Implement this in a subclass" end |