2021-01-20 13:46:11 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module EmailAction
|
|
|
|
|
|
|
|
class Error < ::StandardError
|
|
|
|
end
|
|
|
|
|
|
|
|
class Base
|
|
|
|
|
2021-01-26 13:26:55 +01:00
|
|
|
attr_reader :action
|
|
|
|
|
2021-01-26 16:00:49 +01:00
|
|
|
def initialize(action:)
|
2021-01-26 13:26:55 +01:00
|
|
|
@action = action
|
|
|
|
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
|