Class: Mindee::Product::Receipt::ReceiptV5Page
- Inherits:
-
Mindee::Parsing::Common::Page
- Object
- Mindee::Parsing::Common::Page
- Mindee::Product::Receipt::ReceiptV5Page
- Defined in:
- lib/mindee/product/receipt/receipt_v5_page.rb
Overview
Receipt API version 5.3 page data.
Instance Attribute Summary
Attributes inherited from Mindee::Parsing::Common::Page
#extras, #orientation, #page_id, #prediction
Instance Method Summary collapse
-
#initialize(prediction) ⇒ ReceiptV5Page
constructor
A new instance of ReceiptV5Page.
Methods inherited from Mindee::Parsing::Common::Page
Constructor Details
#initialize(prediction) ⇒ ReceiptV5Page
Returns a new instance of ReceiptV5Page.
12 13 14 15 16 17 18 |
# File 'lib/mindee/product/receipt/receipt_v5_page.rb', line 12 def initialize(prediction) super(prediction) @prediction = ReceiptV5PagePrediction.new( prediction['prediction'], prediction['id'] ) end |