Sha256: 85270723f23053d2260f2b8d230c20541eb6182b778ef8d393f233c20d1707de

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 KB

Contents

# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   union LedgerKey switch (LedgerEntryType type)
#   {
#   case ACCOUNT:
#       struct
#       {
#           AccountID accountID;
#       } account;
#   
#   case TRUSTLINE:
#       struct
#       {
#           AccountID accountID;
#           Asset asset;
#       } trustLine;
#   
#   case OFFER:
#       struct
#       {
#           AccountID sellerID;
#           uint64 offerID;
#       } offer;
#   };
#
# ===========================================================================
module Stellar
  class LedgerKey < XDR::Union
    include XDR::Namespace

    autoload :Account
    autoload :TrustLine
    autoload :Offer

    switch_on LedgerEntryType, :type

    switch :account,   :account
    switch :trustline, :trust_line
    switch :offer,     :offer

    attribute :account,    Account
    attribute :trust_line, TrustLine
    attribute :offer,      Offer
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
stellar-base-0.10.0 generated/stellar/ledger_key.rb
stellar-base-0.9.0 generated/stellar/ledger_key.rb
stellar-base-0.8.0 generated/stellar/ledger_key.rb
stellar-base-0.7.0 generated/stellar/ledger_key.rb
stellar-base-0.6.1 generated/stellar/ledger_key.rb
stellar-base-0.6.0 generated/stellar/ledger_key.rb
stellar-base-0.5.0 generated/stellar/ledger_key.rb
stellar-base-0.4.0 generated/stellar/ledger_key.rb
open-core-0.3.0 generated/stellar/ledger_key.rb
stellar-base-0.3.0 generated/stellar/ledger_key.rb
stellar-base-0.2.0 generated/stellar/ledger_key.rb
stellar-base-0.1.4 generated/stellar/ledger_key.rb
stellar-base-0.1.3 generated/stellar/ledger_key.rb
stellar-base-0.1.2 generated/stellar/ledger_key.rb
stellar-base-0.1.1 generated/stellar/ledger_key.rb
stellar-base-0.1.0 generated/stellar/ledger_key.rb