Class: AWS::Flow::Utilities::AddressableFuture

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/decider/utilities.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(initial_metadata = nil) ⇒ AddressableFuture

Returns a new instance of AddressableFuture.



110
111
112
113
# File 'lib/aws/decider/utilities.rb', line 110

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



125
126
127
# File 'lib/aws/decider/utilities.rb', line 125

def method_missing(method_name, *args, &block)
  @return_value.send(method_name, *args, &block)
end

Instance Attribute Details

#_metadataObject

Returns the value of attribute _metadata.



109
110
111
# File 'lib/aws/decider/utilities.rb', line 109

def 
  @_metadata
end

#return_valueObject

Returns the value of attribute return_value.



109
110
111
# File 'lib/aws/decider/utilities.rb', line 109

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.

Returns:

  • (Boolean)


117
118
119
# File 'lib/aws/decider/utilities.rb', line 117

def is_flow_future?
  true
end

#metadataObject



121
122
123
# File 'lib/aws/decider/utilities.rb', line 121

def 
  @_metadata
end