Class: Minter::RedeemCheckTx
- Inherits:
-
Transaction
- Object
- Transaction
- Minter::RedeemCheckTx
- Defined in:
- lib/minter/transactions/redeem_check_tx.rb
Instance Attribute Summary collapse
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#check ⇒ Object
Returns the value of attribute check.
-
#gas_coin ⇒ Object
Returns the value of attribute gas_coin.
-
#gas_price ⇒ Object
Returns the value of attribute gas_price.
-
#nonce ⇒ Object
Returns the value of attribute nonce.
-
#proof ⇒ Object
Returns the value of attribute proof.
Instance Method Summary collapse
-
#initialize(check:, proof:, nonce:, chain_id:, gas_coin:, gas_price:) ⇒ RedeemCheckTx
constructor
rubocop:disable Metrics/ParameterLists.
- #to_params ⇒ Object
Methods inherited from Transaction
Constructor Details
#initialize(check:, proof:, nonce:, chain_id:, gas_coin:, gas_price:) ⇒ RedeemCheckTx
rubocop:disable Metrics/ParameterLists
7 8 9 10 11 12 13 14 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 7 def initialize(check:, proof:, nonce:, chain_id:, gas_coin:, gas_price:) # rubocop:disable Metrics/ParameterLists @check = check @proof = proof @nonce = nonce @chain_id = chain_id @gas_coin = gas_coin @gas_price = gas_price end |
Instance Attribute Details
#chain_id ⇒ Object
Returns the value of attribute chain_id.
5 6 7 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 5 def chain_id @chain_id end |
#check ⇒ Object
Returns the value of attribute check.
5 6 7 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 5 def check @check end |
#gas_coin ⇒ Object
Returns the value of attribute gas_coin.
5 6 7 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 5 def gas_coin @gas_coin end |
#gas_price ⇒ Object
Returns the value of attribute gas_price.
5 6 7 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 5 def gas_price @gas_price end |
#nonce ⇒ Object
Returns the value of attribute nonce.
5 6 7 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 5 def nonce @nonce end |
#proof ⇒ Object
Returns the value of attribute proof.
5 6 7 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 5 def proof @proof end |
Instance Method Details
#to_params ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/minter/transactions/redeem_check_tx.rb', line 16 def to_params { Check: check, Proof: proof, Nonce: nonce, ChainId: chain_id, GasCoin: gas_coin, GasPrice: gas_price } end |