Class: ActiveResource::Connection
- Inherits:
-
Object
- Object
- ActiveResource::Connection
- Defined in:
- lib/redcuine/active_resource_ext/print_rest.rb
Instance Method Summary collapse
Instance Method Details
#request_with_print(method, path, *arguments) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/redcuine/active_resource_ext/print_rest.rb', line 3 def request_with_print(method, path, *arguments) puts "#{method.to_s.upcase} #{site.scheme}://#{site.host}:#{site.port}#{path}" res = request_without_print(method, path, *arguments) puts res if Redcuine::CONFIG["debug"] return res end |