How to Export Inventory from Ruby 2