mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Net worth calculation (#508)
* Add classification generated column to account * Add basic net worth calculation * Add net worth tests * Fix lint errors
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
class Trend
|
||||
attr_reader :current, :previous, :type
|
||||
|
||||
def initialize(current:, previous: nil, type: :asset)
|
||||
def initialize(current:, previous: nil, type: "asset")
|
||||
@current = current
|
||||
@previous = previous
|
||||
@type = type # :asset means positive trend is good, :liability means negative trend is good
|
||||
@type = type # asset means positive trend is good, liability means negative trend is good
|
||||
end
|
||||
|
||||
def direction
|
||||
|
||||
Reference in New Issue
Block a user