Class: Physicist::Laboratory::JumpScientistHandler

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

Instance Method Summary collapse

Instance Method Details

#handle(scientist_id:) ⇒ Object



4
5
6
7
# File 'lib/physicist/laboratory/handlers/jump_scientist_handler.rb', line 4

def handle(scientist_id:)
  scientist = Scientist.find(scientist_id)
  scientist.jump
end