Class: FullTime::Project

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/full_time/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

dsl_attr_accessor

Constructor Details

#initializeProject

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_dateObject

Returns the value of attribute end_date.



7
8
9
# File 'lib/full_time/project.rb', line 7

def end_date
  @end_date
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/full_time/project.rb', line 7

def name
  @name
end

#start_dateObject

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