Class: Temporal::Client::Serializer::FailWorkflow
- Defined in:
- lib/temporal/client/serializer/fail_workflow.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Temporal::Client::Serializer::Base
Instance Method Details
#to_proto ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/temporal/client/serializer/fail_workflow.rb', line 8 def to_proto Temporal::Api::Command::V1::Command.new( command_type: Temporal::Api::Enums::V1::CommandType::COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION, fail_workflow_execution_command_attributes: Temporal::Api::Command::V1::FailWorkflowExecutionCommandAttributes.new( failure: Failure.new(object.exception).to_proto ) ) end |