soda-ruby with some simple refactoring