class Physicist::Laboratory::MoveScientistHandler

Public Instance Methods

handle(scientist_id:, direction:) click to toggle source
# File lib/physicist/laboratory/handlers/move_scientist_handler.rb, line 4
def handle(scientist_id:, direction:)
  scientist = Scientist.find(scientist_id)
  scientist.move(direction: direction) if scientist # ???
end