Class: EvmTxInput::Argument

Inherits:
Object
  • Object
show all
Defined in:
lib/evm_tx_input/argument.rb

Overview

Represents decoded smart contract function arguments

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameString (readonly)

name of function argument

Returns:

  • (String)

    the current value of name



9
10
11
# File 'lib/evm_tx_input/argument.rb', line 9

def name
  @name
end

#typeString (readonly)

type of function argument

Returns:

  • (String)

    the current value of type



9
10
11
# File 'lib/evm_tx_input/argument.rb', line 9

def type
  @type
end

#valueString, Integer (readonly)

value of function argument

Returns:

  • (String, Integer)

    the current value of value



9
10
11
# File 'lib/evm_tx_input/argument.rb', line 9

def value
  @value
end