Sha256: 3f0da1578c57f1233cafde336e3c34be265eadc0eca9be6588bfe7c9c75ea58d

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

# Automatically generated on 2015-04-07T10:52:07-07:00
# DO NOT EDIT or your changes may be overwritten
        
require 'xdr'

# === xdr source ============================================================
#
#   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;
#       }
#
# ===========================================================================
module Stellar
  class OperationResult
    class Tr < XDR::Union
      switch_on OperationType, :type

      switch :payment,       :payment_result
      switch :create_offer,  :create_offer_result
      switch :set_options,   :set_options_result
      switch :change_trust,  :change_trust_result
      switch :allow_trust,   :allow_trust_result
      switch :account_merge, :account_merge_result
      switch :inflation,     :inflation_result

      attribute :payment_result,       PaymentResult
      attribute :create_offer_result,  CreateOfferResult
      attribute :set_options_result,   SetOptionsResult
      attribute :change_trust_result,  ChangeTrustResult
      attribute :allow_trust_result,   AllowTrustResult
      attribute :account_merge_result, AccountMergeResult
      attribute :inflation_result,     InflationResult
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.0.1 generated/stellar/operation_result/tr.rb