Class: EvmClient::Singleton

Inherits:
Object
  • Object
show all
Defined in:
lib/evm_client/singleton.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject

Returns the value of attribute client.



5
6
7
# File 'lib/evm_client/singleton.rb', line 5

def client
  @client
end

.default_accountObject

Returns the value of attribute default_account.



5
6
7
# File 'lib/evm_client/singleton.rb', line 5

def 
  @default_account
end

.hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/evm_client/singleton.rb', line 5

def host
  @host
end

.instanceObject

Returns the value of attribute instance.



5
6
7
# File 'lib/evm_client/singleton.rb', line 5

def instance
  @instance
end

.ipcpathObject

Returns the value of attribute ipcpath.



5
6
7
# File 'lib/evm_client/singleton.rb', line 5

def ipcpath
  @ipcpath
end

.logObject

Returns the value of attribute log.



5
6
7
# File 'lib/evm_client/singleton.rb', line 5

def log
  @log
end

Class Method Details

.resetObject



15
16
17
18
19
20
21
22
# File 'lib/evm_client/singleton.rb', line 15

def reset
  @instance = nil
  @client = nil
  @host = nil
  @log = nil
  @ipcpath = nil
  @default_account = nil
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



11
12
13
# File 'lib/evm_client/singleton.rb', line 11

def setup
  yield(self)
end