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