Class: LabwareCreators::MultiStampTubes

Inherits:
Base
  • Object
show all
Includes:
CustomPage, SupportParent::TubeOnly
Defined in:
app/models/labware_creators/multi_stamp_tubes.rb

Overview

rubocop:todo Style/Documentation, Metrics/ClassLength

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from LabwareCreators::Base

Instance Attribute Details

#parentsObject

Returns the value of attribute parents.



8
9
10
# File 'app/models/labware_creators/multi_stamp_tubes.rb', line 8

def parents
  @parents
end

#transfersObject

Returns the value of attribute transfers.



8
9
10
# File 'app/models/labware_creators/multi_stamp_tubes.rb', line 8

def transfers
  @transfers
end

Instance Method Details

#allow_tube_duplicates?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/labware_creators/multi_stamp_tubes.rb', line 26

def allow_tube_duplicates?
  params.fetch('allow_tube_duplicates', false)
end

#parentObject Originally defined in module SupportParent::TubeOnly

#require_tube_passed?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'app/models/labware_creators/multi_stamp_tubes.rb', line 30

def require_tube_passed?
  params.fetch('require_tube_passed', false)
end