Class: Ticker

Inherits:
Object
  • Object
show all
Defined in:
backend/app/lib/batch_import_runner.rb

Instance Method Summary (collapse)

Constructor Details

- (Ticker) initialize(job)

Returns a new instance of Ticker



18
19
20
# File 'backend/app/lib/batch_import_runner.rb', line 18

def initialize(job)
  @job = job
end

Instance Method Details

- (Object) log(s)



32
33
34
# File 'backend/app/lib/batch_import_runner.rb', line 32

def log(s)
  @job.write_output(s)
end

- (Object) status_update(status_code, status)



27
28
29
# File 'backend/app/lib/batch_import_runner.rb', line 27

def status_update(status_code, status)
  @job.write_output("#{status[:id]}. #{status_code.upcase}: #{status[:label]}")
end

- (Object) tick



23
24
# File 'backend/app/lib/batch_import_runner.rb', line 23

def tick
end

- (Object) tick_estimate=(n)



37
38
# File 'backend/app/lib/batch_import_runner.rb', line 37

def tick_estimate=(n)
end