Class: Dtn::Streaming::Requests::Level2::Watch
- Inherits:
-
Dtn::Streaming::Request
- Object
- Dtn::Streaming::Request
- Dtn::Streaming::Requests::Level2::Watch
- Defined in:
- lib/dtn/streaming/requests/level2/watch.rb
Overview
Watch a symbol.
:param symbol: A valid symbol for a security or derivative.
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(symbol:) ⇒ Object
11 12 13 |
# File 'lib/dtn/streaming/requests/level2/watch.rb', line 11 def call(symbol:) socket.puts "w#{symbol.upcase}\r\n" end |