Class: Docusigner::Connection
- Inherits:
-
ActiveResource::Connection
- Object
- ActiveResource::Connection
- Docusigner::Connection
- Defined in:
- lib/docusigner/connection.rb
Instance Method Summary collapse
Instance Method Details
#post(path, body = '', headers = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/docusigner/connection.rb', line 3 def post(path, body = '', headers = {}) if body.is_a?(Array) with_auth do req = Docusigner::Multipart::Post.new(path, body, build_request_headers(headers, :post, self.site.merge(path))) handle_response(http.request(req)) end else super(path, body, headers) end end |
#put(path, body = '', headers = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/docusigner/connection.rb', line 14 def put(path, body = '', headers = {}) if body.is_a?(Array) req = Docusigner::Multipart::Put.new(path, body, headers) with_auth { request(:request, req, build_request_headers(headers, :put, self.site.merge(path))) } else super(path, body, headers) end end |