Class: Shiftzilla::Milestone

Inherits:
Object
  • Object
show all
Defined in:
lib/shiftzilla/milestone.rb

Instance Method Summary collapse

Constructor Details

#initialize(mtxt) ⇒ Milestone

Returns a new instance of Milestone.



3
4
5
6
7
8
9
10
# File 'lib/shiftzilla/milestone.rb', line 3

def initialize(mtxt)
  @date  = nil
  @stamp = ''
  unless (mtxt.nil? or mtxt == '')
    @date  = Date.parse(mtxt)
    @stamp = mtxt
  end
end

Instance Method Details

#dateObject



12
13
14
# File 'lib/shiftzilla/milestone.rb', line 12

def date
  @date
end

#stampObject



16
17
18
# File 'lib/shiftzilla/milestone.rb', line 16

def stamp
  @stamp
end