Class: ODDB::StubUpdaterPlugin

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubUpdaterPlugin) initialize(app)

A new instance of StubUpdaterPlugin



14
15
16
# File 'test/test_util/updater.rb', line 14

def initialize(app)
  @app = app
end

Instance Attribute Details

- (Object) month (readonly)

Returns the value of attribute month



13
14
15
# File 'test/test_util/updater.rb', line 13

def month
  @month
end

Instance Method Details

- (Object) incomplete_pointers Also known as: recipients



29
30
31
# File 'test/test_util/updater.rb', line 29

def incomplete_pointers
  []
end

- (Object) log_info



17
18
19
20
21
# File 'test/test_util/updater.rb', line 17

def log_info
  {
    :report =>  @last_date,
  }
end

- (Object) report



26
27
28
# File 'test/test_util/updater.rb', line 26

def report
  @last_date
end

- (Object) update(date)



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

def update(date)
  @last_date = @month = @app.last_date = date
  date < Date.new(2002,12)
end