Class: ODDB::TestUpdater::StubApp

Inherits:
Object
  • Object
show all
Defined in:
test/test_util/updater.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubApp) initialize

A new instance of StubApp



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

def initialize
  @model = StubLog.new
end

Instance Attribute Details

- (Object) last_date

Returns the value of attribute last_date



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

def last_date
  @last_date
end

- (Object) log_group(key)



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

def log_group(key)
  @log_group
end

- (Object) model (readonly)

Returns the value of attribute model



43
44
45
# File 'test/test_util/updater.rb', line 43

def model
  @model
end

- (Object) pointer (readonly)

Returns the value of attribute pointer



43
44
45
# File 'test/test_util/updater.rb', line 43

def pointer
  @pointer
end

- (Object) values (readonly)

Returns the value of attribute values



43
44
45
# File 'test/test_util/updater.rb', line 43

def values
  @values
end

Instance Method Details

- (Object) create(pointer)



56
57
58
# File 'test/test_util/updater.rb', line 56

def create(pointer)
  @log_group
end

- (Object) update(pointer, values)



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

def update(pointer, values)
  @pointer = pointer
  @values = values
  @model
end