# Automatically generated on 2015-05-12T09:08:23-07:00 # 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