Class: RequestType::PoolingMethod

Inherits:
ApplicationRecord show all
Defined in:
app/models/request_type/pooling_method.rb

Defined Under Namespace

Modules: PlateRow, Submission

Instance Method Summary collapse

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

#import_behaviourObject


10
11
12
13
14
15
16
17
# File 'app/models/request_type/pooling_method.rb', line 10

def import_behaviour
  return if pooling_behaviour.nil?

  behavior_module = "RequestType::PoolingMethod::#{pooling_behaviour}".constantize
  class_eval do
    include(behavior_module)
  end
end

#pooling_behaviour=(*params) ⇒ Object


19
20
21
22
# File 'app/models/request_type/pooling_method.rb', line 19

def pooling_behaviour=(*params)
  super
  import_behaviour
end