class Tracco::Tracking::EstimateTracking
Public Instance Methods
add_to(card)
click to toggle source
# File lib/tracco/tracking/estimate_tracking.rb, line 10 def add_to(card) card.estimates << estimate unless card.contains_estimate?(estimate) end
estimate()
click to toggle source
# File lib/tracco/tracking/estimate_tracking.rb, line 6 def estimate @estimate ||= Estimate.new(amount: convert_to_hours(raw_estimate), date: date, tracking_notification_id: tracking_notification.id) end
Private Instance Methods
raw_estimate()
click to toggle source
# File lib/tracco/tracking/estimate_tracking.rb, line 16 def raw_estimate extract_match_from_raw_tracking(/\[#{DURATION_REGEXP}\]/) end