Class: Web3::Eth::TraceModule
- Inherits:
-
Object
- Object
- Web3::Eth::TraceModule
- Includes:
- Utility
- Defined in:
- lib/web3ethereum/trace_module.rb
Constant Summary collapse
- PREFIX =
'trace_'
Instance Method Summary collapse
-
#initialize(web3_rpc) ⇒ TraceModule
constructor
A new instance of TraceModule.
- #internalCallsByHash(tx_hash) ⇒ Object
- #method_missing(m, *args) ⇒ Object
Methods included from Utility
#from_hex, #hex, #remove_0x_head, #wei_to_ether
Constructor Details
#initialize(web3_rpc) ⇒ TraceModule
Returns a new instance of TraceModule.
10 11 12 |
# File 'lib/web3ethereum/trace_module.rb', line 10 def initialize web3_rpc @web3_rpc = web3_rpc end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
14 15 16 |
# File 'lib/web3ethereum/trace_module.rb', line 14 def method_missing m, *args @web3_rpc.request "#{PREFIX}#{m}", args[0] end |