Sha256: 9d40778a411d76b5d07a36ec04d519104d3c42405399b89d6a6924d40af20304

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 Bytes

Contents

# Automatically generated on 2015-04-07T10:52:07-07:00
# DO NOT EDIT or your changes may be overwritten
        
require 'xdr'

# === xdr source ============================================================
#
#   union switch (SCPStatementType type)
#       {
#       case PREPARING:
#           struct
#           {
#               SCPBallot excepted<>; // B_c
#               SCPBallot* prepared;  // p
#           } prepare;
#       case PREPARED:
#       case COMMITTING:
#       case COMMITTED:
#           void;
#       }
#
# ===========================================================================
module Stellar
  class SCPStatement
    class Pledges < XDR::Union
      include XDR::Namespace

      autoload :Prepare

      switch_on SCPStatementType, :type

      switch :preparing, :prepare
      switch :prepared
      switch :committing
      switch :committed

      attribute :prepare, Prepare
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.0.1 generated/stellar/scp_statement/pledges.rb