sanger/sequencescape

View on GitHub
app/jobs/asset_link/job.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Convenient mechanism for queueing the creation of AssetLink instances where there is
# singular parent with lots of children.
class AssetLink::Job < AssetLink::BuilderJob
  def initialize(parent, children)
    super(children.map { |child| [parent.id, child.id] })
  end
end