lib/messenger/result.rb in messenger-0.1.1 vs lib/messenger/result.rb in messenger-0.2.0

- old
+ new

@@ -11,8 +11,20 @@ def success? !!@success end + def code + response.code rescue nil + end + + def body + if response.respond_to?(:body) + response.body + else + response.to_s + end + end + end end