mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
Return amount
This commit is contained in:
parent
09ec280a81
commit
479ed20142
@ -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
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user