Class: Sortah::CleanRoom
- Inherits:
-
Object
- Object
- Sortah::CleanRoom
- Defined in:
- lib/sortah/cleanroom.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.sort(email, context) ⇒ Object
8 9 10 |
# File 'lib/sortah/cleanroom.rb', line 8 def self.sort(email, context) new(email, context).sort end |
Instance Method Details
#destination ⇒ Object
21 22 23 |
# File 'lib/sortah/cleanroom.rb', line 21 def destination @pointer if @pointer.is_a? Destination end |
#metadata(key) ⇒ Object
17 18 19 |
# File 'lib/sortah/cleanroom.rb', line 17 def (key) email.send(key) end |
#sort ⇒ Object
12 13 14 15 |
# File 'lib/sortah/cleanroom.rb', line 12 def sort catch(:finished_execution) { run!(@pointer) } until @pointer.is_a?(Destination) self end |