refactor
This commit is contained in:
parent
08fa73c8de
commit
038ce108b5
2 changed files with 0 additions and 1 deletions
39
src/job.py
Normal file
39
src/job.py
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class Job:
|
||||
title: str
|
||||
company: str
|
||||
location: str
|
||||
link: str
|
||||
apply_method: str
|
||||
description: str = ""
|
||||
summarize_job_description: str = ""
|
||||
pdf_path: str = ""
|
||||
recruiter_link: str = ""
|
||||
|
||||
def set_summarize_job_description(self, summarize_job_description):
|
||||
self.summarize_job_description = summarize_job_description
|
||||
|
||||
def set_job_description(self, description):
|
||||
self.description = description
|
||||
|
||||
def set_recruiter_link(self, recruiter_link):
|
||||
self.recruiter_link = recruiter_link
|
||||
|
||||
def formatted_job_information(self):
|
||||
"""
|
||||
Formats the job information as a markdown string.
|
||||
"""
|
||||
job_information = f"""
|
||||
# Job Description
|
||||
## Job Information
|
||||
- Position: {self.title}
|
||||
- At: {self.company}
|
||||
- Location: {self.location}
|
||||
- Recruiter Profile: {self.recruiter_link or 'Not available'}
|
||||
|
||||
## Description
|
||||
{self.description or 'No description provided.'}
|
||||
"""
|
||||
return job_information.strip()
|
||||
Loading…
Add table
Add a link
Reference in a new issue