class MultiformatCV::Project
Attributes
end_date[RW]
name[RW]
position[RW]
repo[RW]
Repository URL for the project
start_date[RW]
summary[RW]
tasks[RW]
technologies[RW]
url[RW]
Page or site URL for the project
Public Class Methods
new(h = {})
click to toggle source
Create Project
instance
Example:¶ ↑
project = MultiformatCV::Project.new(name: 'Life Solver (TM)', summary: '...', ...)
@param [Hash] h Instance initializer; keys MUST be strings @option h [String] 'name' @option h [String] 'position' @option h [String] 'start_date' @option h [String] 'end_date' @option h [String] 'repo' Repository URL @option h [String] 'url' URL for the project @option h [String] 'summary' Project
description, goals, etc. @option h [Array<String>] 'tasks' Tasks done for the project @option h [Array<String>] 'technologies' Technologies used in the project
# File lib/multiformatcv/project.rb, line 32 def initialize(h = {}) @name = h['name'] @position = h['position'] @start_date = h['start_date'] @end_date = h['end_date'] @repo = h['repo'] @summary = h['summary'] @url = h['url'] @tasks = [] @technologies = [] h['tasks'].each { |t| @tasks << t } if h['tasks'] h['technologies'].each { |t| @technologies << t } if h['technologies'] end