Class: Verifalia::EmailValidations::Progress

Inherits:
Object
  • Object
show all
Defined in:
lib/verifalia/email_validation/progress.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(percentage, estimated_time_remaining) ⇒ Progress

Returns a new instance of Progress.



42
43
44
45
# File 'lib/verifalia/email_validation/progress.rb', line 42

def initialize(percentage, estimated_time_remaining)
  @percentage = percentage
  @estimated_time_remaining = estimated_time_remaining
end

Instance Attribute Details

#estimated_time_remainingObject (readonly)

A string representing the estimated remaining time for completing the email validation job, expressed in the format dd.hh:mm:ss (where dd: days, hh: hours, mm: minutes, ss: seconds); the initial dd. part is added only for huge lists requiring more than 24 hours to complete.



40
41
42
# File 'lib/verifalia/email_validation/progress.rb', line 40

def estimated_time_remaining
  @estimated_time_remaining
end

#percentageObject (readonly)

The overall progress percentage for the job, with a value between 0 and 1.



36
37
38
# File 'lib/verifalia/email_validation/progress.rb', line 36

def percentage
  @percentage
end