Class: Etherlite::Client
- Inherits:
-
Object
- Object
- Etherlite::Client
- Includes:
- Api::Node
- Defined in:
- lib/etherlite/client.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(_connection) ⇒ Client
constructor
A new instance of Client.
Methods included from Api::Node
#account_from_pk, #accounts, #anonymous_account, #default_account, #get_block_number, #get_gas_price, #get_logs, #get_transaction, #load_account, #load_address, #load_transaction, #register_account
Methods included from Api::Address
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
5 6 7 |
# File 'lib/etherlite/client.rb', line 5 def connection @connection end |