Sha256: c30a9d9bbb511161ebbb94c0c1ff5780ba5e77a920a2dad51269321ef09be7d1
Contents?: true
Size: 892 Bytes
Versions: 3
Compression:
Stored size: 892 Bytes
Contents
# This code was automatically generated using xdrgen # DO NOT EDIT or your changes may be overwritten require 'xdr' # === xdr source ============================================================ # # union Asset switch (AssetType type) # { # case ASSET_TYPE_NATIVE: // Not credit # void; # # case ASSET_TYPE_CREDIT_ALPHANUM4: # AlphaNum4 alphaNum4; # # case ASSET_TYPE_CREDIT_ALPHANUM12: # AlphaNum12 alphaNum12; # # // add other asset types here in the future # }; # # =========================================================================== module Stellar class Asset < XDR::Union switch_on AssetType, :type switch :asset_type_native switch :asset_type_credit_alphanum4, :alpha_num4 switch :asset_type_credit_alphanum12, :alpha_num12 attribute :alpha_num4, AlphaNum4 attribute :alpha_num12, AlphaNum12 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stellar-base-0.32.0 | generated/stellar/asset.rb |
stellar-base-0.31.0 | generated/stellar/asset.rb |
stellar-base-0.30.0 | generated/stellar/asset.rb |