mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Remove trend initialization from Series model to streamline value calculations.
Added initial pass at onboarding system tests.
This commit is contained in:
parent
07ca33f2f4
commit
6dae236fe0
3 changed files with 359 additions and 4 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue