Class: Cadence::Workflow::Serializer::CancelTimer

Inherits:
Base
  • Object
show all
Defined in:
lib/cadence/workflow/serializer/cancel_timer.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Cadence::Workflow::Serializer::Base

Instance Method Details

#to_thriftObject



7
8
9
10
11
12
13
14
15
# File 'lib/cadence/workflow/serializer/cancel_timer.rb', line 7

def to_thrift
  CadenceThrift::Decision.new(
    decisionType: CadenceThrift::DecisionType::CancelTimer,
    cancelTimerDecisionAttributes:
      CadenceThrift::CancelTimerDecisionAttributes.new(
        timerId: object.timer_id.to_s
      )
  )
end