Class: Ethlite::Configuration
- Inherits:
-
Object
- Object
- Ethlite::Configuration
- Defined in:
- lib/ethlite.rb
Instance Method Summary collapse
Instance Method Details
#rpc ⇒ Object
38 |
# File 'lib/ethlite.rb', line 38 def rpc() @rpc || JsonRpc.new( ENV['INFURA_URI'] ); end |
#rpc=(value) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/ethlite.rb', line 39 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 |