Sha256: 854130513dd7d13011f43b28bf8beeb815ce46bbfdb5868b61f2afdeb5048c37

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

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 (OperationType type)
#       {
#       case PAYMENT:
#           PaymentOp paymentOp;
#       case CREATE_OFFER:
#           CreateOfferOp createOfferOp;
#       case SET_OPTIONS:
#           SetOptionsOp setOptionsOp;
#       case CHANGE_TRUST:
#           ChangeTrustOp changeTrustOp;
#       case ALLOW_TRUST:
#           AllowTrustOp allowTrustOp;
#       case ACCOUNT_MERGE:
#           uint256 destination;
#       case INFLATION:
#           uint32 inflationSeq;
#       }
#
# ===========================================================================
module Stellar
  class Operation
    class Body < XDR::Union
      switch_on OperationType, :type

      switch :payment,       :payment_op
      switch :create_offer,  :create_offer_op
      switch :set_options,   :set_options_op
      switch :change_trust,  :change_trust_op
      switch :allow_trust,   :allow_trust_op
      switch :account_merge, :destination
      switch :inflation,     :inflation_seq

      attribute :payment_op,      PaymentOp
      attribute :create_offer_op, CreateOfferOp
      attribute :set_options_op,  SetOptionsOp
      attribute :change_trust_op, ChangeTrustOp
      attribute :allow_trust_op,  AllowTrustOp
      attribute :destination,     Uint256
      attribute :inflation_seq,   Uint32
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.0.1 generated/stellar/operation/body.rb