Class: FullTime::Project
- Inherits:
-
Object
- Object
- FullTime::Project
- Extended by:
- DSL
- Defined in:
- lib/full_time/project.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Instance Method Summary collapse
- #achievements(&block) ⇒ Object
-
#initialize ⇒ Project
constructor
A new instance of Project.
- #technologies(&block) ⇒ Object
Methods included from DSL
Constructor Details
#initialize ⇒ Project
Returns a new instance of Project.
9 10 11 12 |
# File 'lib/full_time/project.rb', line 9 def initialize @technologies = List.new @achievements = List.new end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
7 8 9 |
# File 'lib/full_time/project.rb', line 7 def end_date @end_date end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/full_time/project.rb', line 7 def name @name end |
#start_date ⇒ Object
Returns the value of attribute start_date.
7 8 9 |
# File 'lib/full_time/project.rb', line 7 def start_date @start_date end |
Instance Method Details
#achievements(&block) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/full_time/project.rb', line 22 def achievements(&block) if block_given? @achievements.instance_eval(&block) end @achievements end |
#technologies(&block) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/full_time/project.rb', line 14 def technologies(&block) if block_given? @technologies.instance_eval(&block) end @technologies end |