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.



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

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

Instance Attribute Details

#reportedObject (readonly)

Returns the value of attribute reported.



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

def reported
  @reported
end

Instance Method Details

#enqueue(event) ⇒ Object



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

def enqueue(event)
  @reported << event
end