Class: Truemail::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/truemail/worker.rb

Direct Known Subclasses

Audit::Base, Validate::Base

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#resultObject (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