class Mindee::Product::Invoice::InvoiceV4
Invoice API version 4 inference prediction.
def initialize(prediction)
-
prediction
(Hash
) --
def initialize(prediction) super @prediction = InvoiceV4Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| @pages.push(InvoiceV4Page.new(page)) end end