Class: Tox::Address
Overview
Address primitive.
Instance Attribute Summary
Attributes inherited from Binary
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Binary
#==, hex_re, #hex_value=, #initialize, #inspect, #to_s
Constructor Details
This class inherits a constructor from Tox::Binary
Class Method Details
.bytesize ⇒ Object
8 9 10 |
# File 'lib/tox/address.rb', line 8 def self.bytesize 38 end |
Instance Method Details
#checksum ⇒ Object
20 21 22 |
# File 'lib/tox/address.rb', line 20 def checksum @checksum ||= AddressChecksum.new value[36...38] end |