Class: Sequence::Transaction
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Sequence::Transaction
- Defined in:
- lib/sequence/transaction.rb
Overview
A transaction is an atomic update to the state of the ledger. Transactions can issue new flavor units, transfer of flavor units from one account to another, and/or the retire flavor units from an account.
Defined Under Namespace
Classes: Builder, ClientModule, Query
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
List of actions taken by the transaction.
-
#id ⇒ Object
readonly
A unique ID.
-
#sequence_number ⇒ Object
readonly
Sequence number of the transaction.
-
#tags ⇒ Object
readonly
User-specified key-value data embedded in the transaction.
-
#timestamp ⇒ Object
readonly
Time of transaction.
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Sequence::ResponseObject
Instance Attribute Details
#actions ⇒ Object (readonly)
List of actions taken by the transaction.
32 |
# File 'lib/sequence/transaction.rb', line 32 attrib(:actions) { |raw| raw.map { |v| Action.new(v) } } |
#id ⇒ Object (readonly)
A unique ID.
17 |
# File 'lib/sequence/transaction.rb', line 17 attrib :id |
#sequence_number ⇒ Object (readonly)
Sequence number of the transaction.
27 |
# File 'lib/sequence/transaction.rb', line 27 attrib :sequence_number |
#tags ⇒ Object (readonly)
User-specified key-value data embedded in the transaction.
37 |
# File 'lib/sequence/transaction.rb', line 37 attrib :tags |
#timestamp ⇒ Object (readonly)
Time of transaction.
22 |
# File 'lib/sequence/transaction.rb', line 22 attrib :timestamp, rfc3339_time: true |