Class: Etherlite::Address
- Inherits:
-
Object
- Object
- Etherlite::Address
- Includes:
- Etherlite::Api::Address
- Defined in:
- lib/etherlite/address.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#normalized_address ⇒ Object
readonly
Returns the value of attribute normalized_address.
Instance Method Summary collapse
-
#initialize(_connection, _normalized_address) ⇒ Address
constructor
A new instance of Address.
- #to_s ⇒ Object
Methods included from Etherlite::Api::Address
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
5 6 7 |
# File 'lib/etherlite/address.rb', line 5 def connection @connection end |
#normalized_address ⇒ Object (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_s ⇒ Object
12 13 14 15 |
# File 'lib/etherlite/address.rb', line 12 def to_s # TODO: format address using case-chechsum address end |