Class: Dtn::Messages::Level2::Level2Update
- Inherits:
-
MessageWithSimpleParser
- Object
- OpenStruct
- Dtn::Message
- MessageWithSimpleParser
- Dtn::Messages::Level2::Level2Update
- Defined in:
- lib/dtn/messages/level2/level2_update.rb
Overview
Streaming level2 update
Class Method Summary collapse
-
.fields ⇒ Object
rubocop:disable Metrics/MethodLength.
Instance Method Summary collapse
Methods inherited from MessageWithSimpleParser
Methods inherited from Dtn::Message
#callback_name, callback_name, parse
Class Method Details
.fields ⇒ Object
rubocop:disable Metrics/MethodLength
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/dtn/messages/level2/level2_update.rb', line 10 def fields @fields ||= { _skip: :nil, symbol: :to_s, mmid: :to_s, bid: :to_f, ask: :to_f, bid_size: :to_i, ask_size: :to_i, bid_time: :to_s, date: :to_s, unknown1: :to_s, trade_condition_id: :to_i, unknown3: :to_s, ask_time: :to_s, unknown4: :to_s, unknown5: :to_s } end |
Instance Method Details
#trade_condition ⇒ Object
32 33 34 |
# File 'lib/dtn/messages/level2/level2_update.rb', line 32 def trade_condition Dtn.trade_conditions_catalog[trade_condition_id] end |