Sha256: 695db5df5b741794826d262d5f6df3464fee5bc1e5b1871887710bc77dd184e0

Contents?: true

Size: 726 Bytes

Versions: 2

Compression:

Stored size: 726 Bytes

Contents

module LedgerSync
  module Adaptors
    module Test
      module Vendor
        module Operations
          class Valid < Operation::Create
            class Contract < LedgerSync::Adaptors::Contract
              schema do
                optional(:external_id).maybe(:string)
                optional(:ledger_id).maybe(:string)
                optional(:display_name).maybe(:string)
                optional(:first_name).maybe(:string)
                optional(:last_name).maybe(:string)
                optional(:email).maybe(:string)
              end
            end

            private

            def operate
              success(response: :foo)
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ledger_sync-1.1.3 lib/ledger_sync/adaptors/test/vendor/operations/valid.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/test/vendor/operations/valid.rb