Class: MultiformatCV::Resume
- Inherits:
-
Object
- Object
- MultiformatCV::Resume
- Defined in:
- lib/multiformatcv/resume.rb
Instance Attribute Summary collapse
-
#contact ⇒ MultiformatCV::Contact
Contact information.
-
#jobs ⇒ Array<MultiformatCV::Job>
List of jobs.
-
#personal ⇒ MultiformatCV::Personal
Personal accomplishments and projects.
Instance Method Summary collapse
-
#add_contact(h = {}) ⇒ Object
Set contact information.
-
#add_jobs(arr = []) ⇒ Object
Add list of job entries to @jobs list.
-
#add_personal(h = {}) ⇒ Object
Set personal information.
-
#initialize(h = {}) ⇒ Resume
constructor
A new instance of Resume.
Constructor Details
#initialize(h = {}) ⇒ Resume
Returns a new instance of Resume.
14 15 16 |
# File 'lib/multiformatcv/resume.rb', line 14 def initialize(h = {}) @jobs = [] end |
Instance Attribute Details
#contact ⇒ MultiformatCV::Contact
Contact information
4 5 6 |
# File 'lib/multiformatcv/resume.rb', line 4 def contact @contact end |
#jobs ⇒ Array<MultiformatCV::Job>
List of jobs
8 9 10 |
# File 'lib/multiformatcv/resume.rb', line 8 def jobs @jobs end |
#personal ⇒ MultiformatCV::Personal
Personal accomplishments and projects
12 13 14 |
# File 'lib/multiformatcv/resume.rb', line 12 def personal @personal end |
Instance Method Details
#add_contact(h = {}) ⇒ Object
Set contact information
21 22 23 |
# File 'lib/multiformatcv/resume.rb', line 21 def add_contact(h = {}) @contact = MultiformatCV::Contact.new(h) end |
#add_jobs(arr = []) ⇒ Object
Add list of job entries to @jobs list
31 32 33 |
# File 'lib/multiformatcv/resume.rb', line 31 def add_jobs(arr = []) arr.each { |j| @jobs << MultiformatCV::Job.new(j) } end |
#add_personal(h = {}) ⇒ Object
Set personal information
38 39 40 |
# File 'lib/multiformatcv/resume.rb', line 38 def add_personal(h = {}) @personal = MultiformatCV::Personal.new(h) end |