class Mindee::Product::FR::Payslip::PayslipV3
Payslip API version 3 inference prediction.
def initialize(prediction)
-
prediction
(Hash
) --
def initialize(prediction) super @prediction = PayslipV3Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| if page.key?('prediction') && !page['prediction'].nil? && !page['prediction'].empty? @pages.push(PayslipV3Page.new(page)) end end end