Sha256: 2dd171abdcd30f062538eba64d3a8ed8ea1268c86460c216415af29757fa3e28

Contents?: true

Size: 859 Bytes

Versions: 11

Compression:

Stored size: 859 Bytes

Contents

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

# === xdr source ============================================================
#
#   union Currency switch (CurrencyType type)
#   {
#   case CURRENCY_TYPE_NATIVE:
#       void;
#   
#   case CURRENCY_TYPE_ALPHANUM:
#       struct
#       {
#           opaque currencyCode[4];
#           AccountID issuer;
#       } alphaNum;
#   
#       // add other currency types here in the future
#   };
#
# ===========================================================================
module Stellar
  class Currency < XDR::Union
    include XDR::Namespace

    autoload :AlphaNum

    switch_on CurrencyType, :type

    switch :currency_type_native
    switch :currency_type_alphanum, :alpha_num

    attribute :alpha_num, AlphaNum
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
stellar-base-0.0.18 generated/stellar/currency.rb
stellar-base-0.0.17 generated/stellar/currency.rb
stellar-base-0.0.16 generated/stellar/currency.rb
stellar-base-0.0.15 generated/stellar/currency.rb
stellar-base-0.0.14 generated/stellar/currency.rb
stellar-base-0.0.13 generated/stellar/currency.rb
stellar-base-0.0.12 generated/stellar/currency.rb
stellar-base-0.0.11 generated/stellar/currency.rb
stellar-base-0.0.10 generated/stellar/currency.rb
stellar-base-0.0.9 generated/stellar/currency.rb
stellar-base-0.0.8 generated/stellar/currency.rb