Class: Shiftzilla::Milestone
- Inherits:
-
Object
- Object
- Shiftzilla::Milestone
- Defined in:
- lib/shiftzilla/milestone.rb
Instance Method Summary collapse
- #date ⇒ Object
-
#initialize(mtxt) ⇒ Milestone
constructor
A new instance of Milestone.
- #stamp ⇒ Object
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
#date ⇒ Object
12 13 14 |
# File 'lib/shiftzilla/milestone.rb', line 12 def date @date end |
#stamp ⇒ Object
16 17 18 |
# File 'lib/shiftzilla/milestone.rb', line 16 def stamp @stamp end |