fixed bug in client.rb method object_from_response