Class: Laksa::Jsonrpc::Provider
- Inherits:
-
Object
- Object
- Laksa::Jsonrpc::Provider
- Defined in:
- lib/laksa/jsonrpc/provider.rb
Instance Method Summary collapse
-
#initialize(endpoint) ⇒ Provider
constructor
A new instance of Provider.
- #method_missing(sym, *args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
18 19 20 |
# File 'lib/laksa/jsonrpc/provider.rb', line 18 def method_missing(sym, *args) @client.invoke(sym.to_s, args) end |