Class: Em::Nordnet::Goliath::FeedPlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/em-nordnet/goliath/feed_plugin.rb

Direct Known Subclasses

PrivateFeed, PublicFeed

Constant Summary collapse

@@connection =
nil

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port, config, status, logger) ⇒ FeedPlugin

Returns a new instance of FeedPlugin.



11
12
13
# File 'lib/em-nordnet/goliath/feed_plugin.rb', line 11

def initialize port, config, status, logger
  @port, @config, @status, @logger = port, config, status, logger
end

Class Method Details

.connectionObject



6
7
8
# File 'lib/em-nordnet/goliath/feed_plugin.rb', line 6

def connection
  @@connection
end

Instance Method Details

#runObject



15
16
17
# File 'lib/em-nordnet/goliath/feed_plugin.rb', line 15

def run
  @@connection = feed_connection
end