Module: RockRMS::Client::BinaryFile
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/binary_file.rb
Instance Method Summary collapse
Instance Method Details
#upload_binary_file(file:, mime_type:, binary_file_type_id:) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/rock_rms/resources/binary_file.rb', line 4 def upload_binary_file( file:, mime_type:, binary_file_type_id: ) query_string = "BinaryFileTypeId=#{binary_file_type_id}" converted_file = Faraday::UploadIO.new(file, mime_type) post("BinaryFiles/Upload?#{query_string}", { file: converted_file }) end |