Sha256: 4fed8c0d4bafbef69b864fb5f9c0c79f7521027c2f0086618ec0023597e35c3f

Contents?: true

Size: 801 Bytes

Versions: 7

Compression:

Stored size: 801 Bytes

Contents

# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   union LedgerEntry switch (LedgerEntryType type)
#   {
#   case ACCOUNT:
#       AccountEntry account;
#   case TRUSTLINE:
#       TrustLineEntry trustLine;
#   case OFFER:
#       OfferEntry offer;
#   };
#
# ===========================================================================
module Stellar
  class LedgerEntry < XDR::Union
    switch_on LedgerEntryType, :type

    switch :account,   :account
    switch :trustline, :trust_line
    switch :offer,     :offer

    attribute :account,    AccountEntry
    attribute :trust_line, TrustLineEntry
    attribute :offer,      OfferEntry
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stellar-base-0.1.4 generated/stellar/ledger_entry.rb
stellar-base-0.1.3 generated/stellar/ledger_entry.rb
stellar-base-0.1.2 generated/stellar/ledger_entry.rb
stellar-base-0.1.1 generated/stellar/ledger_entry.rb
stellar-base-0.1.0 generated/stellar/ledger_entry.rb
stellar-base-0.0.20 generated/stellar/ledger_entry.rb
stellar-base-0.0.19 generated/stellar/ledger_entry.rb