class Physicist::Laboratory::ScientistCreatedEventListener

Public Instance Methods

receive(scientist_id:, space_id:, name:, title:, position:, velocity:) click to toggle source
# File lib/physicist/laboratory/listeners/scientist_created_event_listener.rb, line 4
def receive(scientist_id:, space_id:, name:, title:, position:, velocity:)
  ScientistView.create(
    scientist_id: scientist_id,
    space_id: space_id,
    display_name: "#{name} the #{title}",
    position: position,
    velocity: velocity
  )
end