Class: ODDB::State::Drugs::StubIncompleteRegsApp

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/drugs/incompleteregistrations.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubIncompleteRegsApp) initialize

A new instance of StubIncompleteRegsApp



49
50
51
52
# File 'test/test_state/drugs/incompleteregistrations.rb', line 49

def initialize
  @deletions = []
  @updates = {}
end

Instance Attribute Details

- (Object) deletions

Returns the value of attribute deletions



48
49
50
# File 'test/test_state/drugs/incompleteregistrations.rb', line 48

def deletions
  @deletions
end

- (Object) packages

Returns the value of attribute packages



48
49
50
# File 'test/test_state/drugs/incompleteregistrations.rb', line 48

def packages
  @packages
end

- (Object) registrations

Returns the value of attribute registrations



48
49
50
# File 'test/test_state/drugs/incompleteregistrations.rb', line 48

def registrations
  @registrations
end

- (Object) updates

Returns the value of attribute updates



48
49
50
# File 'test/test_state/drugs/incompleteregistrations.rb', line 48

def updates
  @updates
end

Instance Method Details

- (Object) async(&block)



65
66
67
# File 'test/test_state/drugs/incompleteregistrations.rb', line 65

def async(&block)
  true
end

- (Object) delete(pointer)



53
54
55
# File 'test/test_state/drugs/incompleteregistrations.rb', line 53

def delete(pointer)
  @deletions.push(pointer)
end

- (Object) each_package(&block)



56
57
58
# File 'test/test_state/drugs/incompleteregistrations.rb', line 56

def each_package(&block)
  @packages.each(&block)
end

- (Object) registration(iksnr)



59
60
61
# File 'test/test_state/drugs/incompleteregistrations.rb', line 59

def registration(iksnr)
  (@registrations ||={})[iksnr]
end

- (Object) update(pointer, values)



62
63
64
# File 'test/test_state/drugs/incompleteregistrations.rb', line 62

def update(pointer, values)
  @updates.store(pointer, values)
end