HashStruct is similar to Struct from Ruby standard library, the difference is that HashStruct.generate creates a class which takes a hash with attributes rather than just positional arguments as Struct.new does.
Jakub Šťastný aka Botanicus
gem "hash_struct", "~> 0.3"