class Mindee::Product::Receipt::ReceiptV5
Receipt API version 5 inference prediction.
def initialize(prediction)
-
prediction
(Hash
) --
def initialize(prediction) super @prediction = ReceiptV5Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| @pages.push(ReceiptV5Page.new(page)) end end