Constructors are declared via the initialize method and get called when you call on a new object to be created.
Using the code snippet below, calling Order.new acts as a constructor for an object of the class Order.

Initializing instance variables of the class Order.