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.



296
297
298
# File 'lib/aws/decider/utilities.rb', line 296

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.



297
298
299
300
301
302
# File 'lib/aws/decider/utilities.rb', line 297

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