Class: Dtn::Messages::System::Generic::CurrentProtocol

Inherits:
Dtn::Message
  • Object
show all
Defined in:
lib/dtn/messages/system/generic.rb

Overview

Gem will support only one protocol version at the time

Class Method Summary collapse

Methods inherited from Dtn::Message

callback_name, #callback_name

Class Method Details

.parseObject



40
41
42
# File 'lib/dtn/messages/system/generic.rb', line 40

def parse(**)
  super.tap { |message| (message.line =~ /6.1/) || raise("Unsupported protocol: #{message}") }
end