Dump Mysql database to ruby class

I just would like to know if there’s a solution in ruby to “export” a table from mysql to a ruby class by creating attributes from column, class name from table name etc.
I know that it’s possible in a lot of languages but I didn’t find solutions in Ruby.
Thanks a lot !

Hello @valoche73700,

Is that what you are looking for: How To Export A MySQL Database to JSON, CSV and XML with Ruby and the ActiveRecord Gem?