Class: Etheruby::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/etheruby/client.rb

Class Method Summary collapse

Class Method Details

.method_missing(sym) ⇒ Object



11
12
13
14
# File 'lib/etheruby/client.rb', line 11

def self.method_missing(sym)
  @@uri ||= URI.parse('http://localhost:8545/')
  ClientHolder.new(@@uri,sym)
end

.uri=(_uri) ⇒ Object



8
9
10
# File 'lib/etheruby/client.rb', line 8

def self.uri=(_uri)
  @@uri = URI.parse(_uri)
end