lib/elevator_simulation/elevator.rb
def details
      details = <<~DETAILS
        id: #{id}, current_floor: #{@current_floor}, trips: #{@trips}, state: #{@state}, trip_timer: #{@trip_timer&.round}, 
        movement_timer: #{@movement_timer&.round}, direction: #{@direction}, door_state: #{@door_state}, door_timer: #{@door_timer&.round}, 
        request_floor: #{@request_floor}, destination_floor: #{@destination_floor}
      DETAILS
      logger.info details
    end
# One floor moved per second.
One floor moved per second.
One floor moved per second .
def details
      details = <<~DETAILS
        id: #{id}, current_floor: #{@current_floor}, trips: #{@trips}, state: #{@state}, trip_timer: #{@trip_timer&.round}, 
        movement_timer: #{@movement_timer&.round}, direction: #{@direction}, door_state: #{@door_state}, door_timer: #{@door_timer&.round}, 
        request_floor: #{@request_floor}, destination_floor: #{@destination_floor}
      DETAILS
      logger.info details
    end
def details details = <<~DETAILS 
        id:  #{ id } , current_floor:  #{ @current_floor } , trips:  #{ @trips } , state:  #{ @state } , trip_timer:  #{ @trip_timer &. round } , 
        movement_timer:  #{ @movement_timer &. round } , direction:  #{ @direction } , door_state:  #{ @door_state } , door_timer:  #{ @door_timer &. round } , 
        request_floor:  #{ @request_floor } , destination_floor:  #{ @destination_floor } DETAILS logger . info details end
One floor moved per second.
One floor moved per second .