class Knowbe4Hiring::Job

this class creates a job

Attributes

additional_qualifications[R]
desired_abilities[R]
id[R]
language[R]
location[R]
mission_statement[R]
requirements[R]
responsibilities[R]
title[R]

Public Class Methods

new(options) click to toggle source
# File lib/knowbe4_hiring/job.rb, line 8
def initialize(options)
  @id = options[:id]
  @title = options[:title]
  @language = options[:language]
  @location = options[:location]
  @mission_statement = options[:mission_statement]
  @desired_abilities = options[:desired_abilities]
  @responsibilities = options[:responsibilities]
  @requirements = options[:requirements]
  @additional_qualifications = options[:additional_qualifications]
end

Public Instance Methods

apply(name) click to toggle source
# File lib/knowbe4_hiring/job.rb, line 20
def apply(name)
  `#{OS.open_file_command} #{mail_to_link(name)}`
end

Private Instance Methods

body(name) click to toggle source
# File lib/knowbe4_hiring/job.rb, line 38
def body(name)
  body = "Hello KnowBe4 Hiring Team,\n"
  body += "My name is #{name} and I am interested in the #{full_position}."
  body += 'I would like to be considered for this role because I meet the '
  body += "following requirements: #{requirements}."
  body += "I welcome the opportunity to discuss this position further.\n\n"
  body += "Regards,\n#{name}"
  body
end
full_position() click to toggle source
# File lib/knowbe4_hiring/job.rb, line 34
def full_position
  "#{language} #{title} position"
end
subject() click to toggle source
# File lib/knowbe4_hiring/job.rb, line 30
def subject
  "Application from Rails Conf, Job Opening: #{title}"
end