Class: Dtn::ParseListFromMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/dtn/message.rb

Overview

For messages which return a collection of comma separated values.

Class Method Summary collapse

Methods inherited from Message

callback_name, #callback_name

Class Method Details

.parse(line:) ⇒ Object



24
25
26
# File 'lib/dtn/message.rb', line 24

def parse(line:, **)
  new list: line.chomp.split(",").uniq
end