Skip to content

Instantly share code, notes, and snippets.

@Akhigbe-E
Created February 4, 2021 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akhigbe-E/98f95365541ef3a3915d26af686500f8 to your computer and use it in GitHub Desktop.
Save Akhigbe-E/98f95365541ef3a3915d26af686500f8 to your computer and use it in GitHub Desktop.
Abstracted Jobs class
export class Jobs {
constructor({
id,
type,
created_at,
company,
company_url,
company_logo,
location,
title,
}) {
this.id = id
; (this.jobType = type), (this.companyName = company)
this.location = location
this.title = title
this.createdAt = created_at
this.companyUrl = company_url
this.companyLogo = company_logo
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment