Class: Mindee::Product::US::DriverLicense::DriverLicenseV1Page
- Inherits:
-
Mindee::Parsing::Common::Page
- Object
- Mindee::Parsing::Common::Page
- Mindee::Product::US::DriverLicense::DriverLicenseV1Page
- Defined in:
- lib/mindee/product/us/driver_license/driver_license_v1_page.rb
Overview
Driver License API version 1.1 page data.
Instance Attribute Summary
Attributes inherited from Mindee::Parsing::Common::Page
#extras, #orientation, #page_id, #prediction
Instance Method Summary collapse
-
#initialize(prediction) ⇒ DriverLicenseV1Page
constructor
A new instance of DriverLicenseV1Page.
Methods inherited from Mindee::Parsing::Common::Page
Constructor Details
#initialize(prediction) ⇒ DriverLicenseV1Page
Returns a new instance of DriverLicenseV1Page.
13 14 15 16 17 18 19 |
# File 'lib/mindee/product/us/driver_license/driver_license_v1_page.rb', line 13 def initialize(prediction) super(prediction) @prediction = DriverLicenseV1PagePrediction.new( prediction['prediction'], prediction['id'] ) end |