Sha256: b7ff7d03ed223223dbbc201c0862857a2769c1f0050b315e26ebd66f7636e030

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

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;
#       case DATA:
#           DataEntry data;
#       case CLAIMABLE_BALANCE:
#           ClaimableBalanceEntry claimableBalance;
#       }
#
# ===========================================================================
module Stellar
  class LedgerEntry
    class Data < XDR::Union
      switch_on LedgerEntryType, :type

      switch :account,           :account
      switch :trustline,         :trust_line
      switch :offer,             :offer
      switch :data,              :data
      switch :claimable_balance, :claimable_balance

      attribute :account,           AccountEntry
      attribute :trust_line,        TrustLineEntry
      attribute :offer,             OfferEntry
      attribute :data,              DataEntry
      attribute :claimable_balance, ClaimableBalanceEntry
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stellar-base-0.29.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.28.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.27.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.26.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.25.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.24.0 generated/stellar/ledger_entry/data.rb
stellar-base-0.24.0.pre.1 generated/stellar/ledger_entry/data.rb