Class: Faraday::Parts::ParamPart
- Inherits:
-
Object
- Object
- Faraday::Parts::ParamPart
- Defined in:
- lib/restforce/upload_io.rb
Instance Method Summary collapse
Instance Method Details
#build_part(boundary, name, value) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/restforce/upload_io.rb', line 10 def build_part(boundary, name, value) part = '' part << "--#{boundary}\r\n" part << "Content-Disposition: form-data; name=\"#{name.to_s}\";\r\n" part << "Content-Type: application/json\r\n" part << "\r\n" part << "#{value}\r\n" end |