# This code was automatically generated using xdrgen # DO NOT EDIT or your changes may be overwritten require 'xdr' # === xdr source ============================================================ # # union BucketEntry switch (BucketEntryType type) # { # case LIVEENTRY: # case INITENTRY: # LedgerEntry liveEntry; # # case DEADENTRY: # LedgerKey deadEntry; # case METAENTRY: # BucketMetadata metaEntry; # }; # # =========================================================================== module Stellar class BucketEntry < XDR::Union switch_on BucketEntryType, :type switch :liveentry, :live_entry switch :initentry, :live_entry switch :deadentry, :dead_entry switch :metaentry, :meta_entry attribute :live_entry, LedgerEntry attribute :dead_entry, LedgerKey attribute :meta_entry, BucketMetadata end end