Sha256: f116a220fc15764fc5885c8f35a1400afee73ea45b472b07a4fc61352d291dad
Contents?: true
Size: 499 Bytes
Versions: 64
Compression:
Stored size: 499 Bytes
Contents
# This is a simple implementation of an in memory queue using an array. module DispatchRider module QueueServices class Simple < Base def assign_storage(attrs) [] end def insert(item) queue << item end def raw_head queue.first end def construct_message_from(item) deserialize(item) end def delete(item) queue.delete(item) end def size queue.size end end end end
Version data entries
64 entries across 64 versions & 1 rubygems