Class: MultiformatCV::Project
- Inherits:
-
Object
- Object
- MultiformatCV::Project
- Defined in:
- lib/multiformatcv/project.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#position ⇒ Object
Returns the value of attribute position.
-
#repo ⇒ Object
Repository URL for the project.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
-
#technologies ⇒ Object
Returns the value of attribute technologies.
-
#url ⇒ Object
Page or site URL for the project.
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ Project
constructor
Create Project instance.
Constructor Details
#initialize(h = {}) ⇒ Project
Create Project instance
Example:
project = MultiformatCV::Project.new(name: 'Life Solver (TM)', summary: '...', ...)
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# 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 |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def end_date @end_date end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def name @name end |
#position ⇒ Object
Returns the value of attribute position.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def position @position end |
#repo ⇒ Object
Repository URL for the project
11 12 13 |
# File 'lib/multiformatcv/project.rb', line 11 def repo @repo end |
#start_date ⇒ Object
Returns the value of attribute start_date.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def start_date @start_date end |
#summary ⇒ Object
Returns the value of attribute summary.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def summary @summary end |
#tasks ⇒ Object
Returns the value of attribute tasks.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def tasks @tasks end |
#technologies ⇒ Object
Returns the value of attribute technologies.
2 3 4 |
# File 'lib/multiformatcv/project.rb', line 2 def technologies @technologies end |
#url ⇒ Object
Page or site URL for the project
14 15 16 |
# File 'lib/multiformatcv/project.rb', line 14 def url @url end |