Class: Norikra::ListenerSpecHelper::DummyOutputPool
- Inherits:
-
Object
- Object
- Norikra::ListenerSpecHelper::DummyOutputPool
- Defined in:
- lib/norikra/listener_spec_helper.rb
Instance Attribute Summary collapse
-
#pool ⇒ Object
readonly
Returns the value of attribute pool.
Instance Method Summary collapse
-
#initialize ⇒ DummyOutputPool
constructor
A new instance of DummyOutputPool.
- #push(query_name, query_group, events) ⇒ Object
Constructor Details
#initialize ⇒ DummyOutputPool
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
#pool ⇒ Object (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 |