Class: DohLogger::MemoryAcceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/doh/logger/memory_acceptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMemoryAcceptor

Returns a new instance of MemoryAcceptor.



6
7
8
# File 'lib/doh/logger/memory_acceptor.rb', line 6

def initialize
  @events = []
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



4
5
6
# File 'lib/doh/logger/memory_acceptor.rb', line 4

def events
  @events
end

Instance Method Details

#log(event) ⇒ Object



10
11
12
# File 'lib/doh/logger/memory_acceptor.rb', line 10

def log(event)
  @events.push(event)
end