Class: ProductCriteria

Inherits:
ApplicationRecord show all
Includes:
HasBehaviour, SharedBehaviour::Deprecatable, SharedBehaviour::Immutable, SharedBehaviour::Indestructable
Defined in:
app/models/product_criteria.rb

Defined Under Namespace

Classes: Advanced, Basic

Constant Summary collapse

STAGE_STOCK =
'stock'

Constants included from SharedBehaviour::Immutable

SharedBehaviour::Immutable::MUTABLE

Instance Method Summary collapse

Methods included from SharedBehaviour::Immutable

included

Methods included from SharedBehaviour::Deprecatable

#deprecate!, #deprecated?, included

Methods included from SharedBehaviour::Indestructable

included

Methods included from HasBehaviour

included

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Method Details

#assess(asset, target_wells = nil) ⇒ Object


35
36
37
# File 'app/models/product_criteria.rb', line 35

def assess(asset, target_wells = nil)
  self.class.with_behaviour(behaviour).new(configuration, asset, target_wells)
end

#headersObject


39
40
41
# File 'app/models/product_criteria.rb', line 39

def headers
  self.class.with_behaviour(behaviour).headers(configuration)
end

#target_plate_purposesObject


31
32
33
# File 'app/models/product_criteria.rb', line 31

def target_plate_purposes
  configuration.fetch('target_plate_purposes', nil)
end