1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-03 12:35:21 +02:00

Reindent Money class

This commit is contained in:
Jose Farias 2024-04-18 20:01:58 -06:00
parent 996a2e1c75
commit cc7b878d50

View file

@ -50,8 +50,8 @@ class Money
@currency.default_format.gsub("%n", formatted_amount).gsub("%u", @currency.symbol)
end
def to_json(*_args)
{ amount: @amount, currency: @currency.iso_code }.to_json
def as_json
{ amount: @amount, currency: @currency.iso_code }.as_json
end
def <=>(other)