class MultiformatCV::Job
Attributes
company[RW]
end_date[RW]
position[RW]
projects[RW]
List of projects that you worked on during this job @return [Array<MultiformatCV::Project>]
start_date[RW]
summary[RW]
Public Class Methods
new(h = {})
click to toggle source
Create Job
instance
Example:¶ ↑
job = MultiformatCV::Job.new(position: 'Accountant', company: 'Accountants Inc.')
@param [Hash] h Instance initializer; keys MUST be strings @option h [String] 'position' @option h [String] 'company' @option h [String] 'start_date' @option h [String] 'end_date' @option h [String] 'summary' @option h [Array<Hash>] 'projects' List of hashes that will be used to
initialize new MultiformatCV::Porject entries
# 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