Class: FakePaymill::Memory

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_paymill/memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMemory

Returns a new instance of Memory.



5
6
7
# File 'lib/fake_paymill/memory.rb', line 5

def initialize
  clear!
end

Instance Attribute Details

#clientsObject

Returns the value of attribute clients.



3
4
5
# File 'lib/fake_paymill/memory.rb', line 3

def clients
  @clients
end

Instance Method Details

#clear!Object



9
10
11
# File 'lib/fake_paymill/memory.rb', line 9

def clear!
  @clients = {}
end