class DohLog::MemoryAcceptor

Attributes

events[RW]

Public Class Methods

new() click to toggle source
# File lib/dohlog/memory_acceptor.rb, line 6
def initialize
  @events = []
end

Public Instance Methods

add(event) click to toggle source
# File lib/dohlog/memory_acceptor.rb, line 10
def add(event)
  @events << event
end
shutdown() click to toggle source
# File lib/dohlog/memory_acceptor.rb, line 14
def shutdown
  @events.clear
end