Class: Dtn::Messages::Quote::Level1Summary

Inherits:
MessageWithSimpleParser show all
Defined in:
lib/dtn/messages/quote/level1_summary.rb

Overview

Streaming level1 dynamic data. Always return full dataset

Class Method Summary collapse

Methods inherited from MessageWithSimpleParser

#termination?

Methods inherited from Dtn::Message

callback_name, #callback_name

Class Method Details

.parse(line:) ⇒ Object



10
11
12
13
14
# File 'lib/dtn/messages/quote/level1_summary.rb', line 10

def parse(line:, **)
  new.tap do |n|
    apply_values instance: n, attributes: Level1::ALL_FIELDS, values: line.split(",")
  end
end