Sha256: 25a5c877e532bc4b4bca29f546f6c40158ddd9d35425e33d1a0bd1b146a8042d

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

module LedgerSync
  module Xero
    class Operation
      class Update
        include Xero::Operation::Mixin

        private

        def operate
          response_to_operation_result(
            response: client.post(
              path: ledger_resource_type_for_path,
              payload: [
                serializer.serialize(resource: resource)
              ]
            )
          )
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-xero-0.1.0 lib/ledger_sync/xero/operation/update.rb