Class: MultiformatCV::Job
- Inherits:
-
Object
- Object
- MultiformatCV::Job
- Defined in:
- lib/multiformatcv/job.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
Returns the value of attribute company.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#position ⇒ Object
Returns the value of attribute position.
-
#projects ⇒ Array<MultiformatCV::Project>
List of projects that you worked on during this job.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ Job
constructor
Create Job instance.
Constructor Details
#initialize(h = {}) ⇒ Job
Create Job instance
Example:
job = MultiformatCV::Job.new(position: 'Accountant', company: 'Accountants Inc.')
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/multiformatcv/job.rb', line 28 def initialize(h = {}) @position = h['position'] @company = h['company'] @start_date = h['start_date'] @end_date = h['end_date'] @summary = h['summary'] @projects = [] if h['projects'] h['projects'].each do |p| @projects << MultiformatCV::Project.new(p) end end end |
Instance Attribute Details
#company ⇒ Object
Returns the value of attribute company.
2 3 4 |
# File 'lib/multiformatcv/job.rb', line 2 def company @company end |
#end_date ⇒ Object
Returns the value of attribute end_date.
2 3 4 |
# File 'lib/multiformatcv/job.rb', line 2 def end_date @end_date end |
#position ⇒ Object
Returns the value of attribute position.
2 3 4 |
# File 'lib/multiformatcv/job.rb', line 2 def position @position end |
#projects ⇒ Array<MultiformatCV::Project>
List of projects that you worked on during this job
10 11 12 |
# File 'lib/multiformatcv/job.rb', line 10 def projects @projects end |
#start_date ⇒ Object
Returns the value of attribute start_date.
2 3 4 |
# File 'lib/multiformatcv/job.rb', line 2 def start_date @start_date end |
#summary ⇒ Object
Returns the value of attribute summary.
2 3 4 |
# File 'lib/multiformatcv/job.rb', line 2 def summary @summary end |