Class: Norikra::ListenerSpecHelper::DummyOutputPool

Inherits:
Object
  • Object
show all
Defined in:
lib/norikra/listener_spec_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDummyOutputPool

Returns a new instance of DummyOutputPool.



24
25
26
# File 'lib/norikra/listener_spec_helper.rb', line 24

def initialize
  @pool = {}
end

Instance Attribute Details

#poolObject (readonly)

Returns the value of attribute pool.



22
23
24
# File 'lib/norikra/listener_spec_helper.rb', line 22

def pool
  @pool
end

Instance Method Details

#push(query_name, query_group, events) ⇒ Object



28
29
30
31
32
# File 'lib/norikra/listener_spec_helper.rb', line 28

def push(query_name, query_group, events)
  @pool[query_group] ||= {}
  @pool[query_group][query_name] ||= []
  @pool[query_group][query_name].push(*events)
end