Sha256: c1b059f5b56688969a756f5f6561dd74718080b1805dbbdc652d593ce4c044bc

Contents?: true

Size: 389 Bytes

Versions: 41

Compression:

Stored size: 389 Bytes

Contents

module RockRMS
  class Client
    module BinaryFile
      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
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rock_rms-9.10.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.9.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.8.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.7.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.6.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.5.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.4.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.3.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.2.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.1.0 lib/rock_rms/resources/binary_file.rb
rock_rms-9.0.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.23.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.22.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.21.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.20.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.19.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.18.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.17.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.16.0 lib/rock_rms/resources/binary_file.rb
rock_rms-8.15.2 lib/rock_rms/resources/binary_file.rb