From aa05ec171deb17cb2f8fb53394c50a2bc0dd3adc Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 4 Apr 2020 04:24:17 +0200 Subject: [PATCH] matemat: coercions --- matemat/scrape.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matemat/scrape.rb b/matemat/scrape.rb index 3e99fa0..67880b7 100644 --- a/matemat/scrape.rb +++ b/matemat/scrape.rb @@ -24,9 +24,9 @@ data.each do |d| name: d["name"], }, values: { - price: d["price"], + price: d["price"].to_f, value: d["value"], - volume: d["volume"], + volume: d["volume"].to_f, } }) end