app/controllers/tubes_controller.rb
# frozen_string_literal: true
# show => Looks up the presenter for the giver purpose and renders the appropriate show page
# update => Used to update the state of a plate/tube
class TubesController < LabwareController
private
def locate_labware_identified_by_id
Sequencescape::Api::V2::Tube.find_by(search_param) ||
raise(ActionController::RoutingError, "Unknown resource #{search_param}")
end
end