3 changed files with 56 additions and 1 deletions
@ -0,0 +1,37 @@ |
|||||
|
json.user do |
||||
|
json.id @user.id |
||||
|
json.name @user.name |
||||
|
json.title @user.title |
||||
|
|
||||
|
json.work_experiences @user.work_experiences.active do |work| |
||||
|
# json.id work.id |
||||
|
json.title work.title |
||||
|
|
||||
|
json.organization work.employer |
||||
|
|
||||
|
if work.technologies.present? |
||||
|
json.technologies work.technologies |
||||
|
end |
||||
|
json.period work.period |
||||
|
|
||||
|
json.responsibilities do |
||||
|
json.array! work.items_csv&.split(";") |
||||
|
end |
||||
|
end |
||||
|
|
||||
|
json.skills @user.skills.active do |skill| |
||||
|
# json.id skill.id |
||||
|
json.title skill.title |
||||
|
json.detail skill.detail |
||||
|
end |
||||
|
|
||||
|
json.education_entries @user.education_entries.active do |edu| |
||||
|
json.institution edu.institution |
||||
|
json.title edu.title |
||||
|
json.location edu.location |
||||
|
json.period edu.period |
||||
|
json.items do |
||||
|
json.array! edu.items_csv&.split(";") |
||||
|
end |
||||
|
end |
||||
|
end |
||||
Loading…
Reference in new issue