Class: Temporalio::PayloadConverter::Base Abstract
- Inherits:
-
Object
- Object
- Temporalio::PayloadConverter::Base
- Defined in:
- lib/temporalio/payload_converter/base.rb
Overview
This class is abstract.
Use this Interface for implementing your payload converter.
Direct Known Subclasses
Instance Method Summary collapse
-
#from_payload(_payload) ⇒ any
Convert a proto Payload to a Ruby value.
-
#to_payload(_data) ⇒ Temporalio::Api::Common::V1::Payload
Convert a Ruby value to a proto Payload.
Instance Method Details
#from_payload(_payload) ⇒ any
Convert a proto Payload to a Ruby value.
19 20 21 |
# File 'lib/temporalio/payload_converter/base.rb', line 19 def from_payload(_payload) raise NoMethodError, 'must implement #from_payload' end |
#to_payload(_data) ⇒ Temporalio::Api::Common::V1::Payload
Convert a Ruby value to a proto Payload.
10 11 12 |
# File 'lib/temporalio/payload_converter/base.rb', line 10 def to_payload(_data) raise NoMethodError, 'must implement #to_payload' end |