A rectangle is inscribed in a circle, such that each vertex of the rectangle lies on the circumference of the circle. The ratio of the lengths of the sides of the rectangle is . The area of the rectangle is square units. What is the length, in units, of the diameter of the circle?