Class: Dtn::Streaming::Requests::Quote::NewsSwitch
- Inherits:
-
Dtn::Streaming::Request
- Object
- Dtn::Streaming::Request
- Dtn::Streaming::Requests::Quote::NewsSwitch
- Defined in:
- lib/dtn/streaming/requests/quote/news_switch.rb
Overview
Turn on/off real-time news 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/news_switch.rb', line 11 def call(turned_on: true, **) socket.puts "S,NEWS#{turned_on ? "ON" : "OFF"}\r\n" end |