Class: LabwareCreators::MultiStampLibrarySplitter
- Inherits:
-
MultiStamp
show all
- Defined in:
- app/models/labware_creators/multi_stamp_library_splitter.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary
collapse
Instance Method Details
#anchor ⇒ Object
55
56
57
|
# File 'app/models/labware_creators/multi_stamp_library_splitter.rb', line 55
def anchor
'children_tab'
end
|
#children_library_type_to_purpose_mapping ⇒ Object
63
64
65
66
67
68
69
70
71
72
73
|
# File 'app/models/labware_creators/multi_stamp_library_splitter.rb', line 63
def children_library_type_to_purpose_mapping
unless library_type_split_plate_purpose
raise "Missing purpose configuration argument 'library_type_split_plate_purpose'"
end
library_type_split_plate_purpose.each_with_object({}) do |val, memo|
library_type = val[:library_type]
plate_purpose_name = val[:plate_purpose]
memo[library_type] = Settings.purpose_uuids[plate_purpose_name]
end
end
|
#default_volume ⇒ Object
43
44
45
|
# File 'app/models/labware_creators/multi_stamp_library_splitter.rb', line 43
def default_volume
purpose_config.dig(:creator_class, :args, :default_volume)
end
|
#library_type_split_plate_purpose ⇒ Object
59
60
61
|
# File 'app/models/labware_creators/multi_stamp_library_splitter.rb', line 59
def library_type_split_plate_purpose
purpose_config.dig(:creator_class, :args, :library_type_split_plate_purpose)
end
|
We’ve created multiple plates, so we redirect to the parent.
51
52
53
|
# File 'app/models/labware_creators/multi_stamp_library_splitter.rb', line 51
def redirection_target
parent
end
|