Sha256: d7add16a24e1b80f141953419612f12cc43ca1cdd6fe08d22addbad921844c5c

Contents?: true

Size: 753 Bytes

Versions: 11

Compression:

Stored size: 753 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 switch (CurrencyType type)
#       {
#       // CURRENCY_TYPE_NATIVE is not allowed
#       case CURRENCY_TYPE_ALPHANUM:
#           opaque currencyCode[4];
#   
#           // add other currency types here in the future
#       }
#
# ===========================================================================
module Stellar
  class AllowTrustOp
    class Currency < XDR::Union
      switch_on CurrencyType, :type

      switch :currency_type_alphanum, :currency_code

      attribute :currency_code, XDR::Opaque[4]
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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