Class: ProductCriteria
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ProductCriteria
- Includes:
- HasBehaviour, SharedBehaviour::Deprecatable, SharedBehaviour::Immutable, SharedBehaviour::Indestructable
- Defined in:
- app/models/product_criteria.rb
Defined Under Namespace
Constant Summary collapse
- STAGE_STOCK =
'stock'
Constants included from SharedBehaviour::Immutable
SharedBehaviour::Immutable::MUTABLE
Instance Method Summary collapse
Methods included from SharedBehaviour::Immutable
Methods included from SharedBehaviour::Deprecatable
#deprecate!, #deprecated?, included
Methods included from SharedBehaviour::Indestructable
Methods included from HasBehaviour
Methods inherited from ApplicationRecord
alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Instance Method Details
#assess(asset, target_wells = nil) ⇒ Object
36 37 38 |
# File 'app/models/product_criteria.rb', line 36 def assess(asset, target_wells = nil) self.class.with_behaviour(behaviour).new(configuration, asset, target_wells) end |
#headers ⇒ Object
40 41 42 |
# File 'app/models/product_criteria.rb', line 40 def headers self.class.with_behaviour(behaviour).headers(configuration) end |
#target_plate_purposes ⇒ Object
32 33 34 |
# File 'app/models/product_criteria.rb', line 32 def target_plate_purposes configuration.fetch('target_plate_purposes', nil) end |