Class: Dtn::Streaming::Requests::Admin::SetAutoconnect
- Inherits:
-
Dtn::Streaming::Request
- Object
- Dtn::Streaming::Request
- Dtn::Streaming::Requests::Admin::SetAutoconnect
- Defined in:
- lib/dtn/streaming/requests/admin/set_autoconnect.rb
Overview
Tells IQFeed to autoconnect to DTN servers on startup or not
:param turned_on: True means autoconnect, False means don’t
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/admin/set_autoconnect.rb', line 11 def call(turned_on: true, **) socket.puts "S,SET AUTOCONNECT,#{turned_on ? "On" : "Off"}\r\n" end |