Class: Minter::SignedTx
- Inherits:
-
Object
- Object
- Minter::SignedTx
- Defined in:
- lib/minter/transactions/signed_tx.rb
Instance Attribute Summary collapse
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
-
#tx_hash ⇒ Object
readonly
Returns the value of attribute tx_hash.
Instance Method Summary collapse
-
#initialize(tx_hash: nil, transaction: nil) ⇒ SignedTx
constructor
A new instance of SignedTx.
- #send ⇒ Object
Constructor Details
#initialize(tx_hash: nil, transaction: nil) ⇒ SignedTx
Returns a new instance of SignedTx.
7 8 9 10 |
# File 'lib/minter/transactions/signed_tx.rb', line 7 def initialize(tx_hash: nil, transaction: nil) @tx_hash = tx_hash @transaction = transaction end |
Instance Attribute Details
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
5 6 7 |
# File 'lib/minter/transactions/signed_tx.rb', line 5 def transaction @transaction end |
#tx_hash ⇒ Object (readonly)
Returns the value of attribute tx_hash.
5 6 7 |
# File 'lib/minter/transactions/signed_tx.rb', line 5 def tx_hash @tx_hash end |
Instance Method Details
#send ⇒ Object
12 13 14 |
# File 'lib/minter/transactions/signed_tx.rb', line 12 def send Minter::Api::Client.new.send_transaction(transaction: tx_hash) end |