gitlab-org--gitlab-foss/lib/gitlab/email/handler/base_handler.rb
2018-09-03 10:33:48 +01:00

28 lines
496 B
Ruby

# frozen_string_literal: true
module Gitlab
module Email
module Handler
class BaseHandler
attr_reader :mail, :mail_key
def initialize(mail, mail_key)
@mail = mail
@mail_key = mail_key
end
def can_execute?
raise NotImplementedError
end
def execute
raise NotImplementedError
end
def metrics_params
{ handler: self.class.name }
end
end
end
end
end