Method: Formi9::Request#request
- Defined in:
- lib/formi9/request.rb
#request(method, path, options) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/formi9/request.rb', line 26 def request(method, path, ) response = connection.send(method) do |request| case method when :get, :delete request.url(Addressable::URI.escape(path), ) when :post, :put request.path = Addressable::URI.escape(path) request.body = end end response end |