Class: Mindee::Product::FR::IdCard::IdCardV2Page

Inherits:
Mindee::Parsing::Common::Page show all
Defined in:
lib/mindee/product/fr/id_card/id_card_v2_page.rb

Overview

Carte Nationale d’Identité API version 2.0 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) ⇒ IdCardV2Page

Returns a new instance of IdCardV2Page.

Parameters:

  • prediction (Hash)


13
14
15
16
17
18
19
# File 'lib/mindee/product/fr/id_card/id_card_v2_page.rb', line 13

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