Method: Mindee::Product::Invoice::InvoiceV4#initialize

Defined in:
lib/mindee/product/invoice/invoice_v4.rb

#initialize(prediction) ⇒ InvoiceV4

Returns a new instance of InvoiceV4.

Parameters:



19
20
21
22
23
24
25
26
# File 'lib/mindee/product/invoice/invoice_v4.rb', line 19

def initialize(prediction)
  super
  @prediction = InvoiceV4Document.new(prediction['prediction'], nil)
  @pages = []
  prediction['pages'].each do |page|
    @pages.push(InvoiceV4Page.new(page))
  end
end