module Faraday::Parts::Part

Public Class Methods

new(boundary, name, value, headers = {}) click to toggle source
# File lib/restforce/patches/parts.rb, line 8
def self.new(boundary, name, value, headers = {})
  headers ||= {}
  if value.respond_to? :content_type
    FilePart.new(boundary, name, value)
  else
    ParamPart.new(boundary, name, value, headers)
  end
end