lostisland/sawyer — pull request #18 by john-griffin (2014-01-15 10:50:54+00:00)
Title: Add Resource#to_h alias

I've found it really useful to be able to call #to_h on a resource now that Ruby's NilClass [supports #to_h](http://ruby-doc.org/core-2.0/NilClass.html#method-i-to_h). So it doesn't matter if the resource is available or not, I always get a hash and can avoid adding conditionals.