matemat: coercions
This commit is contained in:
parent
ec4878a870
commit
aa05ec171d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue