Return amount

This commit is contained in:
Hakan Ensari 2018-07-20 21:14:07 +01:00
parent 09ec280a81
commit 479ed20142
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,10 @@ require 'quote/base'
module Quote
class EndOfDay < Base
def formatted
{ base: base, date: result.keys.first, rates: result.values.first }
{ amount: amount,
base: base,
date: result.keys.first,
rates: result.values.first }
end
def cache_key

View File

@ -6,7 +6,8 @@ require 'quote/base'
module Quote
class Interval < Base
def formatted
{ base: base,
{ amount: amount,
base: base,
start_date: result.keys.first,
end_date: result.keys.last,
rates: result }