Class: Zilliqa::Account::TransactionFactory
- Inherits:
-
Object
- Object
- Zilliqa::Account::TransactionFactory
- Defined in:
- lib/zilliqa/account/transaction_factory.rb
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#signer ⇒ Object
readonly
Returns the value of attribute signer.
Instance Method Summary collapse
-
#initialize(provider, signer) ⇒ TransactionFactory
constructor
A new instance of TransactionFactory.
- #new(tx_params, to_ds = false) ⇒ Object
Constructor Details
#initialize(provider, signer) ⇒ TransactionFactory
Returns a new instance of TransactionFactory.
6 7 8 9 |
# File 'lib/zilliqa/account/transaction_factory.rb', line 6 def initialize(provider, signer) @provider = provider @signer = signer end |
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
4 5 6 |
# File 'lib/zilliqa/account/transaction_factory.rb', line 4 def provider @provider end |
#signer ⇒ Object (readonly)
Returns the value of attribute signer.
4 5 6 |
# File 'lib/zilliqa/account/transaction_factory.rb', line 4 def signer @signer end |
Instance Method Details
#new(tx_params, to_ds = false) ⇒ Object
11 12 13 |
# File 'lib/zilliqa/account/transaction_factory.rb', line 11 def new(tx_params, to_ds = false) Transaction.new(tx_params, @provider, Zilliqa::Account::Transaction::TX_STATUSES[:initialized], to_ds) end |