# frozen_string_literal: true

module Services
  module Notifications
    class Needs
      class Message
        include Adamantium::Flat
        include Concord.new(:need, :action)

        def message
          klass = case action
                    when :create
                      Create
                    when :destroy
                      Destroy
                  end

          klass.new(need).message
        end
      end
    end
  end
end
