Class: AWS::Flow::Utilities::AddressableFuture
- Inherits:
-
Object
- Object
- AWS::Flow::Utilities::AddressableFuture
- Defined in:
- lib/aws/decider/utilities.rb
Instance Attribute Summary collapse
-
#_metadata ⇒ Object
Returns the value of attribute _metadata.
-
#return_value ⇒ Object
Returns the value of attribute return_value.
Instance Method Summary collapse
-
#initialize(initial_metadata = nil) ⇒ AddressableFuture
constructor
A new instance of AddressableFuture.
-
#is_flow_future? ⇒ Boolean
Determines whether the object is a flow future.
- #metadata ⇒ Object
- #method_missing(method_name, *args, &block) ⇒ Object
Constructor Details
#initialize(initial_metadata = nil) ⇒ AddressableFuture
Returns a new instance of AddressableFuture.
201 202 203 204 |
# File 'lib/aws/decider/utilities.rb', line 201 def initialize( = nil) @_metadata = @return_value = Future.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
216 217 218 |
# File 'lib/aws/decider/utilities.rb', line 216 def method_missing(method_name, *args, &block) @return_value.send(method_name, *args, &block) end |
Instance Attribute Details
#_metadata ⇒ Object
Returns the value of attribute _metadata.
200 201 202 |
# File 'lib/aws/decider/utilities.rb', line 200 def @_metadata end |
#return_value ⇒ Object
Returns the value of attribute return_value.
200 201 202 |
# File 'lib/aws/decider/utilities.rb', line 200 def return_value @return_value end |
Instance Method Details
#is_flow_future? ⇒ Boolean
Determines whether the object is a flow future. The contract is that flow futures must have a #get method.
208 209 210 |
# File 'lib/aws/decider/utilities.rb', line 208 def is_flow_future? true end |
#metadata ⇒ Object
212 213 214 |
# File 'lib/aws/decider/utilities.rb', line 212 def @_metadata end |