Sha256: 5dbb95d43b7a7c1ac9dc374ca308cff9bff21821e8bb41452f6b5f73c1fc4cc3

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

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

# === xdr source ============================================================
#
#   union Currency switch (CurrencyType type)
#   {
#   case NATIVE:
#       void;
#   
#   case ISO4217:
#       ISOCurrencyIssuer isoCI;
#   
#       // add other currency types here in the future
#   };
#
# ===========================================================================
module Stellar
  class Currency < XDR::Union
    switch_on CurrencyType, :type

    switch :native
    switch :iso4217, :iso_ci

    attribute :iso_ci, ISOCurrencyIssuer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stellar-base-0.0.3 generated/stellar/currency.rb
stellar-base-0.0.2 generated/stellar/currency.rb