Method: Bitcoin::Message::Ping#initialize

Defined in:
lib/bitcoin/message/ping.rb

#initialize(nonce = SecureRandom.random_number(0xffffffff)) ⇒ Ping

Returns a new instance of Ping.



12
13
14
# File 'lib/bitcoin/message/ping.rb', line 12

def initialize(nonce = SecureRandom.random_number(0xffffffff))
  @nonce = nonce
end