class Fabric::Status
Status
of a transaction that is to be committed to the ledger.
Constants
- TRANSACTION_STATUSES
Attributes
block_number[R]
@return [Integer] Block number in which the transaction committed.
code[R]
@return [Integer] Transaction
status
successful[R]
@return [Boolean] ‘true` if the transaction committed successfully; otherwise `false`.
transaction_id[R]
@return [String] The ID of the transaction.
Public Class Methods
new(transaction_id, block_number, code)
click to toggle source
# File lib/fabric/entities/status.rb, line 25 def initialize(transaction_id, block_number, code) @transaction_id = transaction_id @block_number = block_number @code = code @successful = @code == TRANSACTION_STATUSES[:VALID] end