Sha256: 1c6ccb0486fc95efdf3f94802068c781eaabbe948c3429a52661f1e7eb0168e4

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

module LedgerSync
  module TemplateLedger
    class Operation
      class Update
        include TemplateLedger::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-template_ledger-0.1.0 lib/ledger_sync/template_ledger/operation/update.rb