You can return an OpenStruct as suggested in the comment or a stub or mock , which is IMHO better and more useful for tests, because you can easily set ...
確定! 回上一頁