Module: Spear::Structure::Resume::EmbededClass
- Included in:
- Parse, Retrieve
- Defined in:
- lib/spear/structure/resume/embeded_class.rb
Defined Under Namespace
Classes: CompanyExperience, Education
Instance Method Summary
collapse
Instance Method Details
#generate_educations(educations) ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/spear/structure/resume/embeded_class.rb', line 22
def generate_educations(educations)
if !educations.nil?
if educations['Education'].kind_of?(Array)
educations['Education'].map {|e| Education.new(e)}
else [Education.new(educations['Education'])]
end
else
[]
end
end
|
#generate_experiences(company_experiences) ⇒ Object
48
49
50
51
52
53
54
55
56
57
58
|
# File 'lib/spear/structure/resume/embeded_class.rb', line 48
def generate_experiences(company_experiences)
if !company_experiences.nil?
if company_experiences['CompanyExperience'].kind_of?(Array)
company_experiences['CompanyExperience'].map {|e| CompanyExperience.new(e)}
else [CompanyExperience.new(company_experiences['CompanyExperience'])]
end
else
[]
end
end
|