Class: Mindee::Product::FR::IdCard::IdCardV1PagePrediction
- Inherits:
-
IdCardV1Document
- Object
- Mindee::Parsing::Common::Prediction
- IdCardV1Document
- Mindee::Product::FR::IdCard::IdCardV1PagePrediction
- Includes:
- Mindee::Parsing::Standard
- Defined in:
- lib/mindee/product/fr/id_card/id_card_v1_page.rb
Overview
Carte Nationale d’Identité V1 page prediction.
Instance Attribute Summary collapse
-
#document_side ⇒ Mindee::Parsing::Standard::ClassificationField
readonly
The side of the document which is visible.
Attributes inherited from IdCardV1Document
#authority, #birth_date, #birth_place, #expiry_date, #gender, #given_names, #id_number, #mrz1, #mrz2, #surname
Instance Method Summary collapse
-
#initialize(prediction, page_id) ⇒ IdCardV1PagePrediction
constructor
A new instance of IdCardV1PagePrediction.
- #to_s ⇒ String
Constructor Details
#initialize(prediction, page_id) ⇒ IdCardV1PagePrediction
Returns a new instance of IdCardV1PagePrediction.
36 37 38 39 40 41 42 |
# File 'lib/mindee/product/fr/id_card/id_card_v1_page.rb', line 36 def initialize(prediction, page_id) @document_side = Parsing::Standard::ClassificationField.new( prediction['document_side'], page_id ) super end |
Instance Attribute Details
#document_side ⇒ Mindee::Parsing::Standard::ClassificationField (readonly)
The side of the document which is visible.
32 33 34 |
# File 'lib/mindee/product/fr/id_card/id_card_v1_page.rb', line 32 def document_side @document_side end |
Instance Method Details
#to_s ⇒ String
45 46 47 48 49 50 |
# File 'lib/mindee/product/fr/id_card/id_card_v1_page.rb', line 45 def to_s out_str = String.new out_str << "\n:Document Side: #{@document_side}".rstrip out_str << "\n#{super}" out_str end |