Class: ODDB::StubPersistenceDiffable

Inherits:
Object
  • 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)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from Persistence

#initialize

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Constructor Details

This class inherits a constructor from ODDB::Persistence

Instance Attribute Details

- (Object) bar

Returns the value of attribute bar



20
21
22
# File 'test/test_util/persistence.rb', line 20

def bar
  @bar
end

- (Object) baz

Returns the value of attribute baz



20
21
22
# File 'test/test_util/persistence.rb', line 20

def baz
  @baz
end

- (Object) date

Returns the value of attribute date



20
21
22
# File 'test/test_util/persistence.rb', line 20

def date
  @date
end

- (Object) foo

Returns the value of attribute foo



20
21
22
# File 'test/test_util/persistence.rb', line 20

def foo
  @foo
end

- (Object) zap

Returns the value of attribute zap



20
21
22
# File 'test/test_util/persistence.rb', line 20

def zap
  @zap
end

Class Method Details

+ (Object) reset_oid



23
24
25
# File 'test/test_util/persistence.rb', line 23

def reset_oid
  @oid = 0
end

Instance Method Details

- (Object) adjust_types(values, app = nil)



27
28
29
30
31
32
# File 'test/test_util/persistence.rb', line 27

def adjust_types(values, app=nil)
  if(values.include?('date'))
    values['date'] = Date.parse(values['date'])
  end
  values
end

- (Object) nil_if_empty