2021-01-20 13:46:11 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
module EmailOperation
|
2021-01-20 13:46:11 +01:00
|
|
|
|
|
|
|
class Error < ::StandardError
|
|
|
|
end
|
|
|
|
|
|
|
|
class Base
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
attr_reader :operation
|
2021-01-26 13:26:55 +01:00
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
def initialize(operation:)
|
|
|
|
@operation = operation
|
2021-01-26 13:26:55 +01:00
|
|
|
end
|
|
|
|
|
2021-01-20 13:46:11 +01:00
|
|
|
def process(email)
|
|
|
|
fail NotImplementedError
|
|
|
|
end
|
2021-01-25 14:32:26 +01:00
|
|
|
|
2021-01-20 13:46:11 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|