Sha256: a66974ceece79e57cf96bb33df0e3764ed884ca0b443b96841720d4b28413f10

Contents?: true

Size: 299 Bytes

Versions: 8

Compression:

Stored size: 299 Bytes

Contents

module RorVsWild
  module Local
    class Queue
      attr_reader :requests
      def initialize
        @requests = []
      end

      def push_job(data)
      end

      def push_request(data)
        requests.unshift(data)
        requests.pop if requests.size > 100
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rorvswild-1.4.1 lib/rorvswild/local/queue.rb
rorvswild-1.4.0 lib/rorvswild/local/queue.rb
rorvswild-1.3.5 lib/rorvswild/local/queue.rb
rorvswild-1.3.4 lib/rorvswild/local/queue.rb
rorvswild-1.3.3 lib/rorvswild/local/queue.rb
rorvswild-1.3.2 lib/rorvswild/local/queue.rb
rorvswild-1.3.1 lib/rorvswild/local/queue.rb
rorvswild-1.3.0 lib/rorvswild/local/queue.rb