Sha256: 152900344049257df466d641d6821bcfa22a29f8a09f28bea700bcd09f085fda

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 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;
#           Currency currency;
#       } trustLine;
#   
#   case OFFER:
#       struct
#       {
#           AccountID accountID;
#           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

2 entries across 2 versions & 1 rubygems

Version Path
stellar-base-0.0.20 generated/stellar/ledger_key.rb
stellar-base-0.0.19 generated/stellar/ledger_key.rb