Sha256: 13e2b06b54f76eb584669df503b1b60dfc90e3d386142993c59ded549d4ea4e0
Contents?: true
Size: 410 Bytes
Versions: 9
Compression:
Stored size: 410 Bytes
Contents
module Tapyrus module Message # pong message # https://bitcoin.org/en/developer-reference#pong class Pong < Base COMMAND = 'pong' attr_reader :nonce def initialize(nonce) @nonce = nonce end def self.parse_from_payload(payload) new(payload.unpack('Q').first) end def to_payload [nonce].pack('Q') end end end end
Version data entries
9 entries across 9 versions & 1 rubygems