Class Wrest::Native::PostMultipart

  1. lib/wrest/native/post_multipart.rb

Methods

public class

  1. new

public instance

  1. build_request
  2. do_request

Public class methods

new (wrest_uri, parameters = {}, headers = {}, options = {})
[show source]
    # File lib/wrest/native/post_multipart.rb, line 13
13:     def initialize(wrest_uri, parameters = {}, headers = {}, options = {})
14:       super(
15:         wrest_uri,
16:         Net::HTTP::Post::Multipart,
17:         parameters,
18:         nil,
19:         headers,
20:         options
21:       )
22:     end

Public instance methods

build_request (request_klass, uri, parameters, headers)
[show source]
    # File lib/wrest/native/post_multipart.rb, line 24
24:     def build_request(request_klass, uri, parameters, headers)
25:       request_klass.new(uri.full_path, parameters, headers)
26:     end
do_request ()
[show source]
    # File lib/wrest/native/post_multipart.rb, line 28
28:     def do_request
29:       @connection.request(@http_request)
30:     end