Order.new

You're seeing just the function new, go back to Order module for more information.
Link to this function

new(button_type, floor)

Creates an order with given button_type and floor. The owner is set to nil.

Parameters

  • button_type: Button type of the order. Can be :cab, :hall_up or :hall_down :: atom()
  • floor: Floor of the order :: integer()

    Return

  • The created order :: %Order{}