Class: Eth::Abi::Function::CallDescription
- Inherits:
-
Object
- Object
- Eth::Abi::Function::CallDescription
- Defined in:
- lib/eth/abi/function.rb
Overview
A decoded function call.
Instance Attribute Summary collapse
-
#args ⇒ Object
The positional arguments of the call.
-
#function_interface ⇒ Object
The function ABI interface used to decode the call.
-
#kwargs ⇒ Object
The named arguments of the call.
-
#selector ⇒ Object
The function selector.
Instance Method Summary collapse
-
#initialize(function_interface, selector, args, kwargs) ⇒ CallDescription
constructor
Creates a description object for a decoded function call.
-
#name ⇒ Object
The function name.
-
#signature ⇒ Object
The function signature.
Constructor Details
#initialize(function_interface, selector, args, kwargs) ⇒ CallDescription
Creates a description object for a decoded function call.
81 82 83 84 85 86 |
# File 'lib/eth/abi/function.rb', line 81 def initialize(function_interface, selector, args, kwargs) @function_interface = function_interface @selector = selector @args = args @kwargs = kwargs end |
Instance Attribute Details
#args ⇒ Object
The positional arguments of the call.
67 68 69 |
# File 'lib/eth/abi/function.rb', line 67 def args @args end |
#function_interface ⇒ Object
The function ABI interface used to decode the call.
64 65 66 |
# File 'lib/eth/abi/function.rb', line 64 def function_interface @function_interface end |
#kwargs ⇒ Object
The named arguments of the call.
70 71 72 |
# File 'lib/eth/abi/function.rb', line 70 def kwargs @kwargs end |
#selector ⇒ Object
The function selector.
73 74 75 |
# File 'lib/eth/abi/function.rb', line 73 def selector @selector end |
Instance Method Details
#name ⇒ Object
The function name. (e.g. transfer)
89 90 91 |
# File 'lib/eth/abi/function.rb', line 89 def name @name ||= function_interface.fetch("name") end |