Class: ODBA::StorageStub

Inherits:
Object show all
Defined in:
test/stub/odba.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) next_id



31
32
33
34
# File 'test/stub/odba.rb', line 31

def next_id
  @id ||= 0
  @id = @id.next
end

- (Object) reset_id



35
36
37
# File 'test/stub/odba.rb', line 35

def reset_id
  @id = nil
end