Class: Physicist::Laboratory::MoveScientistHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/physicist/laboratory/handlers/move_scientist_handler.rb

Instance Method Summary collapse

Instance Method Details

#handle(scientist_id:, direction:) ⇒ Object



4
5
6
7
# 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