Module: LatexCurriculumVitae::Notify

Defined in:
lib/latex_curriculum_vitae/notifier.rb

Overview

Method for notifying the user

Class Method Summary collapse

Class Method Details

.run(job_title, data_dir) ⇒ Object

Parameters:

  • job_title (String)

    The Title of your job application

  • data_dir (String)

    Path to data dir


27
28
29
30
31
32
33
34
# File 'lib/latex_curriculum_vitae/notifier.rb', line 27

def self.run(job_title, data_dir)
  img = "#{data_dir}/share/icons/arbeitsagentur.png"
  Notifier.notify(
    image: img.to_s,
    title: 'Your Job Application',
    message: "Your Job Application #{job_title} was created now."
  )
end