Class: AWS::Flow::Templates::FlowDefaultResultActivityRuby

Inherits:
Object
  • Object
show all
Extended by:
Activities
Defined in:
lib/aws/templates/default.rb

Overview

Default result reporting activity class for the AWS Flow Framework for Ruby

Instance Attribute Summary collapse

Attributes included from Activities

#activities, #activity_client

Attributes included from Utilities::UpwardLookups

#precursors

Instance Method Summary collapse

Methods included from Activities

_options, activity, extended, look_upwards

Methods included from Utilities::UpwardLookups

#held_properties, #properties, #property

Constructor Details

#initializeFlowDefaultResultActivityRuby

Initialize the future upon instantiation



120
121
122
# File 'lib/aws/templates/default.rb', line 120

def initialize
  @result = Future.new
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



107
108
109
# File 'lib/aws/templates/default.rb', line 107

def result
  @result
end

Instance Method Details

#run(input) ⇒ Object

Set the future when the activity is run



125
126
127
128
# File 'lib/aws/templates/default.rb', line 125

def run(input)
  @result.set(input)
  input
end