Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 986 Bytes

MultipartFormFieldRequest.md

File metadata and controls

26 lines (20 loc) · 986 Bytes

MergeHRISClient::MultipartFormFieldRequest

Properties

Name Type Description Notes
name String The name of the form field
data String The data for the form field.
encoding EncodingEnum The encoding of the value of `data`. Defaults to `RAW` if not defined. * `RAW` - RAW * `BASE64` - BASE64 * `GZIP_BASE64` - GZIP_BASE64 [optional]
file_name String The file name of the form field, if the field is for a file. [optional]
content_type String The MIME type of the file, if the field is for a file. [optional]

Example

require 'merge_hris_client'

instance = MergeHRISClient::MultipartFormFieldRequest.new(
  name: resume,
  data: SW50ZWdyYXRlIGZhc3QKSW50ZWdyYXRlIG9uY2U=,
  encoding: BASE64,
  file_name: resume.pdf,
  content_type: application/pdf
)