Class: EvmTxInput::Argument
- Inherits:
-
Object
- Object
- EvmTxInput::Argument
- Defined in:
- lib/evm_tx_input/argument.rb
Overview
Represents decoded smart contract function arguments
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
name of function argument.
-
#type ⇒ String
readonly
type of function argument.
-
#value ⇒ String, Integer
readonly
value of function argument.
Instance Method Summary collapse
-
#initialize(name, type, value) ⇒ Argument
constructor
A new instance of Argument.
Constructor Details
#initialize(name, type, value) ⇒ Argument
Returns a new instance of Argument.
12 13 14 15 16 |
# File 'lib/evm_tx_input/argument.rb', line 12 def initialize(name, type, value) @name = name @type = type @value = value end |
Instance Attribute Details
#name ⇒ String (readonly)
name of function argument
9 10 11 |
# File 'lib/evm_tx_input/argument.rb', line 9 def name @name end |
#type ⇒ String (readonly)
type of function argument
9 10 11 |
# File 'lib/evm_tx_input/argument.rb', line 9 def type @type end |
#value ⇒ String, Integer (readonly)
value of function argument
9 10 11 |
# File 'lib/evm_tx_input/argument.rb', line 9 def value @value end |