Class: Estimate::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/estimate/project.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, properties = {}) ⇒ Project

Returns a new instance of Project.



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

def initialize name, properties={}
  @name = name
  @properties = properties
end

Instance Method Details

#process!Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/estimate/project.rb', line 11

def process!
  """
  Project: #{@name}
  Incomplete stories: #{incomplete_stories.length}

  And your project end date is.....
        #{display_end_date}

  You have #{remaining_days} days to complete this project.
  """
end