Class: EstimateHelper::Estimate
- Inherits:
-
Object
- Object
- EstimateHelper::Estimate
- Defined in:
- lib/helpers/estimate.rb,
lib/app/helpers/estimate.rb
Instance Method Summary collapse
- #difference(estimate = false) ⇒ Object
-
#initialize(time = 0) ⇒ Estimate
constructor
A new instance of Estimate.
Constructor Details
#initialize(time = 0) ⇒ Estimate
Returns a new instance of Estimate.
3 4 5 |
# File 'lib/helpers/estimate.rb', line 3 def initialize(time=0) @time = time end |
Instance Method Details
#difference(estimate = false) ⇒ Object
7 8 9 10 11 |
# File 'lib/helpers/estimate.rb', line 7 def difference(estimate=false) if !estimate estimate = Time.now end end |