lib/runcible/response.rb in runcible-2.0.0 vs lib/runcible/response.rb in runcible-2.0.1
- old
+ new
@@ -21,9 +21,13 @@
def body
@parsed_body
end
+ def to_hash
+ self.parsed_body.try(:to_hash)
+ end
+
def method_missing(name, *args, &block)
if @parsed_body.respond_to?(name)
@parsed_body.send(name, *args, &block)
elsif @rest_client_response.respond_to?(name)
@rest_client_response.send(name, *args, &block)