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.



180
181
182
# File 'lib/aws/decider/utilities.rb', line 180

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.



181
182
183
184
185
186
# File 'lib/aws/decider/utilities.rb', line 181

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