Class: Etherlite::Address

Inherits:
Object
  • Object
show all
Includes:
Etherlite::Api::Address
Defined in:
lib/etherlite/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Etherlite::Api::Address

#address, #get_balance

Constructor Details

#initialize(_connection, _normalized_address) ⇒ Address

Returns a new instance of Address.



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

def initialize(_connection, _normalized_address)
  @connection = _connection
  @normalized_address = _normalized_address
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



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

def connection
  @connection
end

#normalized_addressObject (readonly)

Returns the value of attribute normalized_address.



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

def normalized_address
  @normalized_address
end

Instance Method Details

#to_sObject



12
13
14
15
# File 'lib/etherlite/address.rb', line 12

def to_s
  # TODO: format address using case-chechsum
  address
end