Class: Cadence::Workflow::Serializer::StartTimer
- Defined in:
- lib/cadence/workflow/serializer/start_timer.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Cadence::Workflow::Serializer::Base
Instance Method Details
#to_thrift ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cadence/workflow/serializer/start_timer.rb', line 7 def to_thrift CadenceThrift::Decision.new( decisionType: CadenceThrift::DecisionType::StartTimer, startTimerDecisionAttributes: CadenceThrift::StartTimerDecisionAttributes.new( timerId: object.timer_id.to_s, startToFireTimeoutSeconds: object.timeout.to_i ) ) end |