Sha256: ff35e91e405c4eb24e3c4998abc39199dfa976ee1f13d39c0c4d35557d30d4af

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 KB

Contents

# Automatically generated on 2015-04-26T19:13:29-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

2 entries across 2 versions & 1 rubygems

Version Path
stellar-base-0.0.3 generated/stellar/operation/body.rb
stellar-base-0.0.2 generated/stellar/operation/body.rb