Class: AWS::Flow::Templates::FlowDefaultResultActivityRuby
- Inherits:
-
Object
- Object
- AWS::Flow::Templates::FlowDefaultResultActivityRuby
- 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
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes included from Activities
Attributes included from Utilities::UpwardLookups
Instance Method Summary collapse
-
#initialize ⇒ FlowDefaultResultActivityRuby
constructor
Initialize the future upon instantiation.
-
#run(input) ⇒ Object
Set the future when the activity is run.
Methods included from Activities
_options, activity, extended, look_upwards
Methods included from Utilities::UpwardLookups
#held_properties, #properties, #property
Constructor Details
#initialize ⇒ FlowDefaultResultActivityRuby
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
#result ⇒ Object (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 |