Class: Truemail::Worker
- Inherits:
-
Object
- Object
- Truemail::Worker
- Defined in:
- lib/truemail/worker.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(result) ⇒ Worker
constructor
A new instance of Worker.
Constructor Details
#initialize(result) ⇒ Worker
Returns a new instance of Worker.
11 12 13 |
# File 'lib/truemail/worker.rb', line 11 def initialize(result) @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/truemail/worker.rb', line 5 def result @result end |
Class Method Details
.check(result) ⇒ Object
7 8 9 |
# File 'lib/truemail/worker.rb', line 7 def self.check(result) new(result).run end |