lib/external_services/api.rb in external_services-0.4.0 vs lib/external_services/api.rb in external_services-0.4.1

- old
+ new

@@ -11,9 +11,15 @@ end def message @response.inspect end + + alias :to_s :message + + def inspect + "#{self.class}: #{to_s}" + end end def api_url ENV["#{to_s.demodulize.upcase}_API_URL"] end