Class: Mindee::Product::Invoice::InvoiceV4Page

Inherits:
Mindee::Parsing::Common::Page show all
Defined in:
lib/mindee/product/invoice/invoice_v4_page.rb

Overview

Invoice API version 4.9 page data.

Instance Attribute Summary

Attributes inherited from Mindee::Parsing::Common::Page

#extras, #orientation, #page_id, #prediction

Instance Method Summary collapse

Methods inherited from Mindee::Parsing::Common::Page

#to_s

Constructor Details

#initialize(prediction) ⇒ InvoiceV4Page

Returns a new instance of InvoiceV4Page.

Parameters:

  • prediction (Hash)


12
13
14
15
16
17
18
# File 'lib/mindee/product/invoice/invoice_v4_page.rb', line 12

def initialize(prediction)
  super(prediction)
  @prediction = InvoiceV4PagePrediction.new(
    prediction['prediction'],
    prediction['id']
  )
end