Class: Dtn::Streaming::Requests::Quote::TimestampSwitch
- Inherits:
-
Dtn::Streaming::Request
- Object
- Dtn::Streaming::Request
- Dtn::Streaming::Requests::Quote::TimestampSwitch
- Defined in:
- lib/dtn/streaming/requests/quote/timestamp_switch.rb
Overview
Turn on/off automatic (1 msg/sec) timestamp messages.
Can be done for entire client watches only
Instance Method Summary collapse
Methods inherited from Dtn::Streaming::Request
Constructor Details
This class inherits a constructor from Dtn::Streaming::Request
Instance Method Details
#call(turned_on: true) ⇒ Object
11 12 13 |
# File 'lib/dtn/streaming/requests/quote/timestamp_switch.rb', line 11 def call(turned_on: true, **) socket.puts "S,TIMESTAMPS#{turned_on ? "ON" : "OFF"}\r\n" end |