Class: Temporalio::Converters::PayloadCodec
- Inherits:
-
Object
- Object
- Temporalio::Converters::PayloadCodec
- Defined in:
- lib/temporalio/converters/payload_codec.rb
Overview
Base class for encoding and decoding payloads. Commonly used for encryption.
Instance Method Summary collapse
-
#decode(payloads) ⇒ Array<Api::Common::V1::Payload>
Decode the given payloads into a new set of payloads.
-
#encode(payloads) ⇒ Array<Api::Common::V1::Payload>
Encode the given payloads into a new set of payloads.
Instance Method Details
#decode(payloads) ⇒ Array<Api::Common::V1::Payload>
Decode the given payloads into a new set of payloads.
21 22 23 |
# File 'lib/temporalio/converters/payload_codec.rb', line 21 def decode(payloads) raise NotImplementedError end |
#encode(payloads) ⇒ Array<Api::Common::V1::Payload>
Encode the given payloads into a new set of payloads.
12 13 14 |
# File 'lib/temporalio/converters/payload_codec.rb', line 12 def encode(payloads) raise NotImplementedError end |