Class: ProductCriteria

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

Overview

rubocop:todo Style/Documentation

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 Squishify

extended

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

#headersObject


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

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

#target_plate_purposesObject


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

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