debian-mirror-gitlab/lib/gitlab/email/handler/base_handler.rb
2017-08-17 22:00:37 +05:30

26 lines
465 B
Ruby

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