lib/ig_markets/streaming/market_subscription_manager.rb
def remove_unused_subscriptions(epics)
        old_subscriptions = []

        @subscriptions.each_key do |epic|
          next if epics.include? epic

          old_subscriptions << @subscriptions.delete(epic)
        end

        @dealing_platform.streaming.remove_subscriptions old_subscriptions
      end
# Initializes this market subscription manager with the specified dealing platform.
#
# @param [DealingPlatform] dealing_platform The dealing platform.
Initializes this market subscription manager with the specified dealing platform.
Initializes this market subscription manager with the specified dealing platform .
def remove_unused_subscriptions(epics)
        old_subscriptions = []
        @subscriptions.each_key do |epic|
          next if epics.include? epic
          old_subscriptions << @subscriptions.delete(epic)
        end
        @dealing_platform.streaming.remove_subscriptions old_subscriptions
      end
def remove_unused_subscriptions ( epics ) old_subscriptions = [ ] @subscriptions . each_key do | epic | next if epics . include? epic old_subscriptions << @subscriptions . delete ( epic ) end @dealing_platform . streaming . remove_subscriptions old_subscriptions end
Initializes this market subscription manager with the specified dealing platform.
Initializes this market subscription manager with the specified dealing platform .
epics
dealing_platform The dealing platform.
dealing_platform The dealing platform .