This will leave an anonymous inner class in RequestInfo's class hierarchy. Given the fact this class has other methods, I would suggest avoiding Struct altogether and writing your own constructor and attr_readers