I have seen codebases using Structs to wrap around attributes and behavior inside a class.
What is the difference between a Ruby Class and a Struct? And when should one be used
Struct is a Ruby shorthand for creating Classes. Using Struct where applicable simplifies your code. There is a good discussion of this at https://www.rubytapas.com/2012/11/07/episode-020-struct/