I'm not sure anything related to HTTP belongs in the 'command' class. I'd remove those mentions, have this return the Hash, and let app.rb do HTTP-specific stuff.