Class: Limber::Helper::LibraryOnlyTemplateConstructor

Inherits:
TemplateConstructor show all
Defined in:
lib/limber/helper.rb

Overview

Class LibraryOnlyTemplateConstructor provides a template constructor which JUST build the library portion of the submission template. No multiplexing or sequencing requests are added.

Instance Attribute Summary

Attributes inherited from TemplateConstructor

#catalogue, #cherrypicked, #name, #pipeline, #prefix, #product_line, #role, #sequencing_keys, #type

Instance Method Summary collapse

Methods inherited from TemplateConstructor

#build!, find_for

Instance Method Details

#name_for(cherrypick, _sequencing_request_type) ⇒ Object


248
249
250
# File 'lib/limber/helper.rb', line 248

def name_for(cherrypick, _sequencing_request_type)
  "#{pipeline} - #{cherrypick ? 'Cherrypicked - ' : ''}#{name}"
end

#request_type_ids(cherrypick, _sequencing) ⇒ Object


256
257
258
259
260
# File 'lib/limber/helper.rb', line 256

def request_type_ids(cherrypick, _sequencing)
  ids = []
  ids << [cherrypick_request_type.id] if cherrypick
  ids << [library_request_type.id]
end

#sequencing_request_typesObject


252
253
254
# File 'lib/limber/helper.rb', line 252

def sequencing_request_types
  [nil]
end