Sha256: 173bdfc0464d549db51682f8978163c89178aa7cf7ed1f0748917882426e60b8

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 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;
#   case LOT:
#       struct
#       {
#           AccountID organizerID;
#           uint64 lotID;
#       } lot;
#   case PARTICIPANT:
#       struct
#       {
#           AccountID accountID;
#           uint64 lotID;
#       } participant;
#   case MESSAGE:
#       struct
#       {
#       AccountID accountID;
#       uint64 messageID;
#       } message;
#   case PROOF:
#       struct
#       {
#           AccountID accountID;
#           uint64 proofID;
#       } proof;
#   
#   };
#
# ===========================================================================
module Stellar
  class LedgerKey < XDR::Union
    include XDR::Namespace

    autoload :Account
    autoload :TrustLine
    autoload :Offer
    autoload :Lot
    autoload :Participant
    autoload :Message
    autoload :Proof

    switch_on LedgerEntryType, :type

    switch :account,     :account
    switch :trustline,   :trust_line
    switch :offer,       :offer
    switch :lot,         :lot
    switch :participant, :participant
    switch :message,     :message
    switch :proof,       :proof

    attribute :account,     Account
    attribute :trust_line,  TrustLine
    attribute :offer,       Offer
    attribute :lot,         Lot
    attribute :participant, Participant
    attribute :message,     Message
    attribute :proof,       Proof
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auction-ruby-base-0.1.3 generated/stellar/ledger_key.rb
auction-ruby-base-0.1.2 generated/stellar/ledger_key.rb
auction-ruby-base-0.1.1 generated/stellar/ledger_key.rb