Class: Sovren::Resume
- Inherits:
-
Object
- Object
- Sovren::Resume
- Defined in:
- lib/sovren/resume.rb
Instance Attribute Summary collapse
-
#achievements ⇒ Object
Returns the value of attribute achievements.
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#certifications ⇒ Object
Returns the value of attribute certifications.
-
#competencies ⇒ Object
Returns the value of attribute competencies.
-
#contact_information ⇒ Object
Returns the value of attribute contact_information.
-
#education_history ⇒ Object
Returns the value of attribute education_history.
-
#employment_history ⇒ Object
Returns the value of attribute employment_history.
-
#executive_summary ⇒ Object
Returns the value of attribute executive_summary.
-
#languages ⇒ Object
Returns the value of attribute languages.
-
#military_history ⇒ Object
Returns the value of attribute military_history.
-
#objective ⇒ Object
Returns the value of attribute objective.
-
#patent_history ⇒ Object
Returns the value of attribute patent_history.
-
#publication_history ⇒ Object
Returns the value of attribute publication_history.
-
#references ⇒ Object
Returns the value of attribute references.
Class Method Summary collapse
Instance Attribute Details
#achievements ⇒ Object
Returns the value of attribute achievements.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def achievements @achievements end |
#associations ⇒ Object
Returns the value of attribute associations.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def associations @associations end |
#certifications ⇒ Object
Returns the value of attribute certifications.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def certifications @certifications end |
#competencies ⇒ Object
Returns the value of attribute competencies.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def competencies @competencies end |
#contact_information ⇒ Object
Returns the value of attribute contact_information.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def contact_information @contact_information end |
#education_history ⇒ Object
Returns the value of attribute education_history.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def education_history @education_history end |
#employment_history ⇒ Object
Returns the value of attribute employment_history.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def employment_history @employment_history end |
#executive_summary ⇒ Object
Returns the value of attribute executive_summary.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def executive_summary @executive_summary end |
#languages ⇒ Object
Returns the value of attribute languages.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def languages @languages end |
#military_history ⇒ Object
Returns the value of attribute military_history.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def military_history @military_history end |
#objective ⇒ Object
Returns the value of attribute objective.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def objective @objective end |
#patent_history ⇒ Object
Returns the value of attribute patent_history.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def patent_history @patent_history end |
#publication_history ⇒ Object
Returns the value of attribute publication_history.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def publication_history @publication_history end |
#references ⇒ Object
Returns the value of attribute references.
5 6 7 |
# File 'lib/sovren/resume.rb', line 5 def references @references end |
Class Method Details
.parse(resume) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/sovren/resume.rb', line 7 def self.parse(resume) parsed_resume = Nokogiri::XML.parse(resume) resume = self.new resume.executive_summary = parsed_resume.css('ExecutiveSummary').text resume.objective = parsed_resume.css('Objective').text resume.contact_information = ContactInformation.parse(parsed_resume.css('ContactInfo').first) resume.education_history = Education.parse(parsed_resume.css('EducationHistory').first) resume.employment_history = Employment.parse(parsed_resume.css('EmploymentHistory').first) resume.certifications = Certification.parse(parsed_resume.css('LicensesAndCertifications').first) resume.competencies = Competency.parse(parsed_resume.css('Qualifications').first) resume.achievements = Achievement.parse(parsed_resume.css('Achievements').first) resume.associations = Association.parse(parsed_resume.css('Associations').first) resume.languages = Language.parse(parsed_resume.css('Languages').first) resume.military_history = Military.parse(parsed_resume.css('MilitaryHistory').first) resume.patent_history = Patent.parse(parsed_resume.css('PatentHistory').first) resume.publication_history = Publication.parse(parsed_resume.css('PublicationHistory').first) resume.references = Reference.parse(parsed_resume.css('References').first) resume end |