mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 12:34:12 +00:00
Remove trend initialization from Series model to streamline value calculations.
Added initial pass at onboarding system tests.
This commit is contained in:
@@ -33,10 +33,6 @@ class Series
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
interval: interval,
|
||||
trend: Trend.new(
|
||||
current: ordered.last[:value],
|
||||
previous: ordered.first[:value]
|
||||
),
|
||||
values: [ nil, *ordered ].each_cons(2).map do |prev_value, curr_value|
|
||||
Value.new(
|
||||
date: curr_value[:date],
|
||||
|
||||
Reference in New Issue
Block a user