Class: Temporal::Client::Serializer::RecordMarker

Inherits:
Base
  • Object
show all
Includes:
Temporal::Concerns::Payloads
Defined in:
lib/temporal/client/serializer/record_marker.rb

Instance Method Summary collapse

Methods included from Temporal::Concerns::Payloads

#from_details_payloads, #from_payload, #from_payloads, #from_result_payloads, #from_signal_payloads, #to_details_payloads, #to_payload, #to_payloads, #to_result_payloads, #to_signal_payloads

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Temporal::Client::Serializer::Base

Instance Method Details

#to_protoObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/temporal/client/serializer/record_marker.rb', line 10

def to_proto
  Temporal::Api::Command::V1::Command.new(
    command_type: Temporal::Api::Enums::V1::CommandType::COMMAND_TYPE_RECORD_MARKER,
    record_marker_command_attributes:
      Temporal::Api::Command::V1::RecordMarkerCommandAttributes.new(
        marker_name: object.name,
        details: {
          'data' => to_details_payloads(object.details)
        }
      )
  )
end