Class: ODDB::StubPointerBar

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

Constant Summary

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from PersistenceMethods

#data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?

Constructor Details

- (StubPointerBar) initialize(arg)

A new instance of StubPointerBar



46
47
48
# File 'test/test_util/persistence.rb', line 46

def initialize(arg)
  @bar = arg
end

Instance Attribute Details

- (Object) bar (readonly)

Returns the value of attribute bar



44
45
46
# File 'test/test_util/persistence.rb', line 44

def bar
  @bar
end

- (Object) checkout_called (readonly)

Returns the value of attribute checkout_called



44
45
46
# File 'test/test_util/persistence.rb', line 44

def checkout_called
  @checkout_called
end

- (Object) urks

Returns the value of attribute urks



45
46
47
# File 'test/test_util/persistence.rb', line 45

def urks
  @urks
end

- (Object) values (readonly)

Returns the value of attribute values



44
45
46
# File 'test/test_util/persistence.rb', line 44

def values
  @values
end

- (Object) zaf

Returns the value of attribute zaf



45
46
47
# File 'test/test_util/persistence.rb', line 45

def zaf
  @zaf
end

Instance Method Details

- (Object) checkout



53
54
55
# File 'test/test_util/persistence.rb', line 53

def checkout
  @checkout_called = true
end

- (Object) update_values(values, origin = nil)



49
50
51
52
# File 'test/test_util/persistence.rb', line 49

def update_values(values, origin=nil)
  super
  @values = values
end