lib/inventory_refresh/inventory_collection.rb
def dependency_attributes_for(inventory_collections)
      attributes = Set.new
      inventory_collections.each do |inventory_collection|
        attributes += filtered_dependency_attributes.select { |_key, value| value.include?(inventory_collection) }.keys
      end
      attributes
    end
def dependency_attributes_for(inventory_collections)
      attributes = Set.new
      inventory_collections.each do |inventory_collection|
        attributes += filtered_dependency_attributes.select { |_key, value| value.include?(inventory_collection) }.keys
      end
      attributes
    end
def dependency_attributes_for ( inventory_collections ) attributes = Set . new inventory_collections . each do | inventory_collection | attributes += filtered_dependency_attributes . select { | _key , value | value . include? ( inventory_collection ) } . keys end attributes end
Returns what attributes are causing a dependencies to certain InventoryCollection objects.

 @param inventory_collections [Array<InventoryRefresh::InventoryCollection>]
 @return [Array<InventoryRefresh::InventoryCollection>] attributes causing the dependencies to certain
         InventoryCollection objects
Returns what attributes are causing a dependencies to certain InventoryCollection objects .