Change as_object to use Hashie::Mash instead of OpenStruct