Sha256: 53f148b389eeeec82e70c53442ba2102722920512fa32e6b0e95792dbe5c1e70

Contents?: true

Size: 962 Bytes

Versions: 19

Compression:

Stored size: 962 Bytes

Contents

# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   union PathPaymentResult switch (PathPaymentResultCode code)
#   {
#   case PATH_PAYMENT_SUCCESS:
#       struct
#       {
#           ClaimOfferAtom offers<>;
#           SimplePaymentResult last;
#       } success;
#   case PATH_PAYMENT_NO_ISSUER:
#       Asset noIssuer; // the asset that caused the error
#   default:
#       void;
#   };
#
# ===========================================================================
module Stellar
  class PathPaymentResult < XDR::Union
    include XDR::Namespace

    autoload :Success

    switch_on PathPaymentResultCode, :code

    switch :path_payment_success,   :success
    switch :path_payment_no_issuer, :no_issuer
    switch :default

    attribute :success,   Success
    attribute :no_issuer, Asset
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
stellar-base-0.20.0 generated/stellar/path_payment_result.rb
stellar-base-0.19.0 generated/stellar/path_payment_result.rb
stellar-base-0.18.0 generated/stellar/path_payment_result.rb
stellar-base-0.17.0 generated/stellar/path_payment_result.rb
stellar-base-0.16.0 generated/stellar/path_payment_result.rb
stellar-base-0.15.0 generated/stellar/path_payment_result.rb
stellar-base-0.14.0 generated/stellar/path_payment_result.rb
stellar-base-0.13.0 generated/stellar/path_payment_result.rb
stellar-base-0.12.0 generated/stellar/path_payment_result.rb
stellar-base-0.11.0 generated/stellar/path_payment_result.rb
auction-ruby-base-0.1.3 generated/stellar/path_payment_result.rb
auction-ruby-base-0.1.2 generated/stellar/path_payment_result.rb
auction-ruby-base-0.1.1 generated/stellar/path_payment_result.rb
stellar-base-0.10.0 generated/stellar/path_payment_result.rb
stellar-base-0.9.0 generated/stellar/path_payment_result.rb
stellar-base-0.8.0 generated/stellar/path_payment_result.rb
stellar-base-0.7.0 generated/stellar/path_payment_result.rb
stellar-base-0.6.1 generated/stellar/path_payment_result.rb
stellar-base-0.6.0 generated/stellar/path_payment_result.rb