Class: Temporalio::Converters::RawValue

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/converters/raw_value.rb

Overview

Raw value wrapper that has the raw payload. When raw args are configured at implementation time, the inbound arguments will be instances of this class. When instances of this class are sent outbound or returned from inbound calls, the raw payload will be serialized instead of applying traditional conversion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ RawValue

Create a raw value.

Parameters:

[View source]

15
16
17
# File 'lib/temporalio/converters/raw_value.rb', line 15

def initialize(payload)
  @payload = payload
end

Instance Attribute Details

#payloadApi::Common::V1::Payload (readonly)

Returns Payload.

Returns:


10
11
12
# File 'lib/temporalio/converters/raw_value.rb', line 10

def payload
  @payload
end