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



201
202
203
# File 'lib/limber/helper.rb', line 201

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

#request_type_ids(cherrypick, _sequencing) ⇒ Object



209
210
211
212
213
# File 'lib/limber/helper.rb', line 209

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

#sequencing_request_typesObject



205
206
207
# File 'lib/limber/helper.rb', line 205

def sequencing_request_types
  [nil]
end