lib/inventory_refresh/inventory_collection.rb
def records_identities(records)
      records = [records] unless records.respond_to?(:map)
      records.map { |record| record_identity(record) }
    end
def records_identities(records)
      records = [records] unless records.respond_to?(:map)
      records.map { |record| record_identity(record) }
    end
def records_identities ( records ) records = [ records ] unless records . respond_to? ( :map ) records . map { | record | record_identity ( record ) } end
Returns array of records identities

 @param records [Array<ApplicationRecord>, Array[Hash]] list of stored records
 @return [Array<Hash>] array of records identities
Returns array of records identities