|
|
|
@ -105,12 +105,16 @@ class Person
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
employers = results.map do |result|
|
|
|
|
|
|
|
|
Company.new({
|
|
|
|
employers = []
|
|
|
|
|
|
|
|
results.each do |result|
|
|
|
|
|
|
|
|
if result["company_id"]
|
|
|
|
|
|
|
|
employers.push(Company.new({
|
|
|
|
"id" => result["company_id"],
|
|
|
|
"id" => result["company_id"],
|
|
|
|
"name" => result["company"],
|
|
|
|
"name" => result["company"],
|
|
|
|
"industry" => result["industry"],
|
|
|
|
"industry" => result["industry"],
|
|
|
|
})
|
|
|
|
}))
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
person = Person.new(
|
|
|
|
person = Person.new(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|