# Automatically generated on 2015-04-26T19:13:29-07:00 # DO NOT EDIT or your changes may be overwritten require 'xdr' # === xdr source ============================================================ # # union OperationResult switch (OperationResultCode code) # { # case opINNER: # union switch (OperationType type) # { # case PAYMENT: # PaymentResult paymentResult; # case CREATE_OFFER: # CreateOfferResult createOfferResult; # case SET_OPTIONS: # SetOptionsResult setOptionsResult; # case CHANGE_TRUST: # ChangeTrustResult changeTrustResult; # case ALLOW_TRUST: # AllowTrustResult allowTrustResult; # case ACCOUNT_MERGE: # AccountMergeResult accountMergeResult; # case INFLATION: # InflationResult inflationResult; # } # tr; # default: # void; # }; # # =========================================================================== module Stellar class OperationResult < XDR::Union include XDR::Namespace autoload :Tr switch_on OperationResultCode, :code switch :op_inner, :tr switch :default attribute :tr, Tr end end