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

Constant Summary

Constants inherited from UatActions

CATEGORY_LIST

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UatActions

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

Class Method Details

.defaultObject



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

def self.default
  new
end

Instance Method Details

#performObject



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

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

  report[:wells_with_aliquots] = wells_with_aliquots

  report[:wells_with_active_requests_as_source] = wells_with_active_requests_as_source
  true
end