Module: AWS::Flow::Utilities::UpwardLookups::InstanceMethods Private

Included in:
Options
Defined in:
lib/aws/decider/utilities.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#precursorsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



334
335
336
# File 'lib/aws/decider/utilities.rb', line 334

def precursors
  @precursors
end

Instance Method Details

#look_upwards(variable) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



335
336
337
338
339
340
# File 'lib/aws/decider/utilities.rb', line 335

def look_upwards(variable)
  all_precursors = @precursors.dup
  all_precursors.concat self.class.default_classes
  results = all_precursors.map { |x| x.send(variable) if x.methods.map(&:to_sym).include? variable }.compact
  results.first
end