Sha256: 2396f77bfe3377457b772f5d82a7dcc887078144ee0c3c7f007b707210b3cfdc

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

module BusinessCentral
  module Object
    class Picture < Base
      using Refinements::Strings

      def update(id, data)
        object = find_all
        Request.call(:patch, @client, "#{build_url(object_id: id)}/content", etag: object[:etag], params: {}) do |request|
          request['Content-Type'] = 'application/octet-stream'
          request.body = data
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
business-central-2.0.0 lib/business_central/object/picture.rb