Sha256: 500519508a37fd2ee24e5985ba1e17121c10615295789c367795b9e2153e19dd
Contents?: true
Size: 633 Bytes
Versions: 4
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module LedgerSync module Adaptors module Test module Operation class Create < Adaptors::Operation::Create private def operate ledger_serializer = Test::LedgerSerializer.new(resource: resource) response = adaptor.post( resource: resource.class.resource_type, payload: ledger_serializer.to_ledger_hash ) success( resource: ledger_serializer.deserialize(hash: response), response: response ) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems