Skip to content

Instantly share code, notes, and snippets.

@ppat
Created February 6, 2014 18:09
Show Gist options
  • Save ppat/8849468 to your computer and use it in GitHub Desktop.
Save ppat/8849468 to your computer and use it in GitHub Desktop.
implicit def createRecommenderInput(job: Job) = new {
def toInput: Input = {
val input = new Input (
title = job.title,
disciplines = Set.empty, // TODO get job.disciplines
industries = Set.empty, // TODO get job.industries
positionLevel = 24, // TODO get job.positionLevel
salaryMin = -1, // TODO get job.salaryMin
salaryMax = -1 // TODO get job.salaryMax
)
info(s"Transformed ${job} to ${input}")
input
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment