rackspace/ruby-openstack-compute — Issue #9: response.is_success
Author: ironcamel
Created: 2011-12-03 05:16:54+00:00
State: open

I see checks for response.code.match(/^20.$/) all over the place. Should we monkey patch response objects with an is_success methods where:

response.is_success

is equivalent to

response.code.match(/^2..$/)

Do response objects already have a similar method? I don't have time at the moment to research this.