Class: Search::FindLotByLotNumber

Inherits:
Search show all
Defined in:
app/models/search/find_lot_by_lot_number.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

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

#scope(criteria) ⇒ Object


3
4
5
# File 'app/models/search/find_lot_by_lot_number.rb', line 3

def scope(criteria)
  Lot.with_lot_number(criteria['lot_number'])
end