Class: ODDB::StubPointerFoo

Inherits:
Object show all
Includes:
ODBA::Persistable
Defined in:
test/test_util/persistence.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubPointerFoo) initialize

A new instance of StubPointerFoo



60
61
62
# File 'test/test_util/persistence.rb', line 60

def initialize
  @shnup = {}
end

Instance Attribute Details

- (Object) bar_deleted (readonly)

Returns the value of attribute bar_deleted



59
60
61
# File 'test/test_util/persistence.rb', line 59

def bar_deleted
  @bar_deleted
end

Instance Method Details

- (Object) bar(arg)



63
64
65
# File 'test/test_util/persistence.rb', line 63

def bar(arg)
  @bar ||= StubPointerBar.new(arg.next)
end

- (Object) car(arg)



66
67
68
# File 'test/test_util/persistence.rb', line 66

def car(arg)
  nil
end

- (Object) create_car(arg)



73
74
75
# File 'test/test_util/persistence.rb', line 73

def create_car(arg)
  StubPointerBar.new(arg.reverse)
end

- (Object) create_shnup



69
70
71
72
# File 'test/test_util/persistence.rb', line 69

def create_shnup
  shnup = StubPersistenceDiffable.new
  @shnup.store(shnup.oid, shnup)
end

- (Object) delete_bar(arg)



76
77
78
# File 'test/test_util/persistence.rb', line 76

def delete_bar(arg) 
  @bar_deleted = arg
end

- (Object) shnup(arg)



79
80
81
# File 'test/test_util/persistence.rb', line 79

def shnup(arg)
  @shnup[arg]
end