Class: Framed::Emitters::InMemory

Inherits:
Base
  • Object
show all
Defined in:
lib/framed/emitters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#start, #stop

Constructor Details

#initialize(client) ⇒ InMemory

Returns a new instance of InMemory.



36
37
38
39
# File 'lib/framed/emitters.rb', line 36

def initialize(client)
  super
  @reported = []
end

Instance Attribute Details

#reportedObject (readonly)

Returns the value of attribute reported.



34
35
36
# File 'lib/framed/emitters.rb', line 34

def reported
  @reported
end

Instance Method Details

#enqueue(event) ⇒ Object



41
42
43
# File 'lib/framed/emitters.rb', line 41

def enqueue(event)
  @reported << event
end