Class: Em::Nordnet::Goliath::PublicFeed
- Inherits:
-
FeedPlugin
- Object
- FeedPlugin
- Em::Nordnet::Goliath::PublicFeed
- Defined in:
- lib/em-nordnet/goliath/public_feed.rb
Class Method Summary collapse
Methods inherited from FeedPlugin
Constructor Details
This class inherits a constructor from Em::Nordnet::Goliath::FeedPlugin
Class Method Details
.subscribe(type, instrument, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/em-nordnet/goliath/public_feed.rb', line 4 def subscribe type, instrument, &block instrument.subscribe_params(type).tap do |args| connection.add_callback type, &block connection.subscribe args end end |