Class: UatActions::PlateInformation

Inherits:
UatActions show all
Defined in:
app/uat_actions/uat_actions/plate_information.rb

Overview

Will fetch plate information for a plate barcode

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UatActions

all, find, form_field, form_fields, #form_fields, id, inherited, permitted, #report, #save, to_partial_path, uat_actions

Class Method Details

.defaultObject


13
14
15
# File 'app/uat_actions/uat_actions/plate_information.rb', line 13

def self.default
  new
end

Instance Method Details

#performObject


17
18
19
20
21
22
23
# File 'app/uat_actions/uat_actions/plate_information.rb', line 17

def perform
  report[:plate_barcode] = plate_barcode
  return false if plate.blank?

  report[:wells_with_aliquots] = wells_with_aliquots
  true
end