From 1ba040675d030e2d22efe99932d82ded0e54874e Mon Sep 17 00:00:00 2001 From: Georgy Yuriev Date: Wed, 30 Aug 2023 12:41:22 +0600 Subject: [PATCH] fix casting quotation structure to json --- lib/invest_tinkoff/v2/quotation.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/invest_tinkoff/v2/quotation.rb b/lib/invest_tinkoff/v2/quotation.rb index d4a53fa..e07e941 100644 --- a/lib/invest_tinkoff/v2/quotation.rb +++ b/lib/invest_tinkoff/v2/quotation.rb @@ -14,4 +14,8 @@ def self.create price nano ) end + + def to_json(*) + to_h.to_json + end end