Sha256: d9438b2e0f2b4e0d67c81514fb5e98abf244551dff8455857ba4622a77640c91

Contents?: true

Size: 1.41 KB

Versions: 18

Compression:

Stored size: 1.41 KB

Contents

# This code was automatically generated using xdrgen
# 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 CREATE_ACCOUNT:
#           CreateAccountResult createAccountResult;
#       case PAYMENT:
#           PaymentResult paymentResult;
#       case PATH_PAYMENT:
#           PathPaymentResult pathPaymentResult;
#       case MANAGE_OFFER:
#           ManageOfferResult manageOfferResult;
#       case CREATE_PASSIVE_OFFER:
#           ManageOfferResult createPassiveOfferResult;
#       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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
stellar-base-0.10.0 generated/stellar/operation_result.rb
stellar-base-0.9.0 generated/stellar/operation_result.rb
stellar-base-0.8.0 generated/stellar/operation_result.rb
stellar-base-0.7.0 generated/stellar/operation_result.rb
stellar-base-0.6.1 generated/stellar/operation_result.rb
stellar-base-0.6.0 generated/stellar/operation_result.rb
stellar-base-0.5.0 generated/stellar/operation_result.rb
stellar-base-0.4.0 generated/stellar/operation_result.rb
open-core-0.3.0 generated/stellar/operation_result.rb
stellar-base-0.3.0 generated/stellar/operation_result.rb
stellar-base-0.2.0 generated/stellar/operation_result.rb
stellar-base-0.1.4 generated/stellar/operation_result.rb
stellar-base-0.1.3 generated/stellar/operation_result.rb
stellar-base-0.1.2 generated/stellar/operation_result.rb
stellar-base-0.1.1 generated/stellar/operation_result.rb
stellar-base-0.1.0 generated/stellar/operation_result.rb
stellar-base-0.0.20 generated/stellar/operation_result.rb
stellar-base-0.0.19 generated/stellar/operation_result.rb