Class: Verifalia::EmailValidations::Progress
- Inherits:
-
Object
- Object
- Verifalia::EmailValidations::Progress
- Defined in:
- lib/verifalia/email_validation/progress.rb
Instance Attribute Summary collapse
-
#estimated_time_remaining ⇒ Object
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. -
#percentage ⇒ Object
readonly
The overall progress percentage for the job, with a value between 0 and 1.
Instance Method Summary collapse
-
#initialize(percentage, estimated_time_remaining) ⇒ Progress
constructor
A new instance of Progress.
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_remaining ⇒ Object (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 |
#percentage ⇒ Object (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 |