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

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (AddressableFuture) initialize(initial_metadata = nil)

Returns a new instance of AddressableFuture



226
227
228
229
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/utilities.rb', line 226

def initialize( = nil)
  @_metadata = 
  @return_value = Future.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(method_name, *args, &block)



241
242
243
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/utilities.rb', line 241

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

Instance Attribute Details

- (Object) _metadata

Returns the value of attribute _metadata



225
226
227
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/utilities.rb', line 225

def 
  @_metadata
end

- (Object) return_value

Returns the value of attribute return_value



225
226
227
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/utilities.rb', line 225

def return_value
  @return_value
end

Instance Method Details

- (Boolean) is_flow_future?

Determines whether the object is a flow future. The contract is that flow futures must have a #get method.

Returns:

  • (Boolean)


233
234
235
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/utilities.rb', line 233

def is_flow_future?
  true
end

- (Object) metadata



237
238
239
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/utilities.rb', line 237

def 
  @_metadata
end