Class: Etherlite::Client

Inherits:
Object
  • Object
show all
Includes:
Api::Node
Defined in:
lib/etherlite/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Api::Node

#accounts, #first_account, #get_block_number, #get_gas_price, #get_transaction_receipt, #register_account

Methods included from Api::Address

#address, #get_balance

Constructor Details

#initialize(_connection) ⇒ Client

Returns a new instance of Client.



7
8
9
# File 'lib/etherlite/client.rb', line 7

def initialize(_connection)
  @connection = _connection
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



5
6
7
# File 'lib/etherlite/client.rb', line 5

def connection
  @connection
end