class Mindee::Product::InternationalId::InternationalIdV2
International ID API version 2 inference prediction.
def initialize(prediction)
-
prediction
(Hash
) --
def initialize(prediction) super @prediction = InternationalIdV2Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| if page.key?('prediction') && !page['prediction'].nil? && !page['prediction'].empty? @pages.push(InternationalIdV2Page.new(page)) end end end