Sha256: 9935195d2f35549c5e3936524ade3ae60686d49bdbecda416966dedcfccffec1
Contents?: true
Size: 674 Bytes
Versions: 2
Compression:
Stored size: 674 Bytes
Contents
module DCA module Mock class WebNotifier def initialize config end def self.queue @queue ||= {} end def self.clean @queue = {} end def push(object, event, options) if event == :fetch && options[:result] == false failed_queue = Mock::WebNotifier.queue[:failed] ||= {} failed_queue[options[:state]] ||= 0 failed_queue[options[:state]] += 1 end if [:analyze, :fetch].include? event queue = Mock::WebNotifier.queue[event] ||= {} queue[options[:state]] ||= 0 queue[options[:state]] += 1 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dca-0.1.1 | spec/mock/web_notifier.rb |
dca-0.1.0 | spec/mock/web_notifier.rb |