Sha256: e4e9ea5cc23a5554e04a5bfaf04bf4f2deec22cba4d8d0057d132e861b4af391

Contents?: true

Size: 857 Bytes

Versions: 11

Compression:

Stored size: 857 Bytes

Contents

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

require 'xdr'

# === xdr source ============================================================
#
#   union switch (LedgerEntryType type)
#       {
#       case ACCOUNT:
#           AccountEntry account;
#       case TRUSTLINE:
#           TrustLineEntry trustLine;
#       case OFFER:
#           OfferEntry offer;
#       }
#
# ===========================================================================
module Stellar
  class LedgerEntry
    class Data < 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
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
stellar-base-0.10.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.9.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.8.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.7.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.6.1 generated/stellar/ledger_entry/data.rb
stellar-base-0.6.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.5.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.4.0 generated/stellar/ledger_entry/data.rb
open-core-0.3.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.3.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.2.0 generated/stellar/ledger_entry/data.rb