Class: Logux::Test::Store

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/logux/test/store.rb

Instance Method Summary collapse

Instance Method Details

#add(params) ⇒ Object



8
9
10
# File 'lib/logux/test/store.rb', line 8

def add(params)
  data << params
end

#dataObject



12
13
14
# File 'lib/logux/test/store.rb', line 12

def data
  @data ||= []
end

#reset!Object



16
17
18
# File 'lib/logux/test/store.rb', line 16

def reset!
  @data = []
end