stellar/ruby-stellar-base

View on GitHub
generated/stellar/account_merge_result.rb

Summary

Maintainability
A
0 mins
Test Coverage
# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   union AccountMergeResult switch (AccountMergeResultCode code)
#   {
#   case ACCOUNT_MERGE_SUCCESS:
#       int64 sourceAccountBalance; // how much got transfered from source account
#   default:
#       void;
#   };
#
# ===========================================================================
module Stellar
  class AccountMergeResult < XDR::Union
    switch_on AccountMergeResultCode, :code

    switch :account_merge_success, :source_account_balance
    switch :default

    attribute :source_account_balance, Int64
  end
end