Class: Ethlite::Configuration
- Inherits:
-
Object
- Object
- Ethlite::Configuration
- Defined in:
- lib/ethlite.rb
Instance Method Summary collapse
Instance Method Details
#rpc ⇒ Object
41 |
# File 'lib/ethlite.rb', line 41 def rpc() @rpc || JsonRpc.new( ENV['INFURA_URI'] ); end |
#rpc=(value) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/ethlite.rb', line 42 def rpc=(value) @rpc = if value.is_a?( String ) JsonRpc.new( value ) ## auto-wrap in (built-in/simple) jsonrpc client/serverproxy else value end end |