Class: Mindee::Product::FR::CarteGrise::CarteGriseV1
- Inherits:
-
Mindee::Parsing::Common::Inference
- Object
- Mindee::Parsing::Common::Inference
- Mindee::Product::FR::CarteGrise::CarteGriseV1
- Defined in:
- lib/mindee/product/fr/carte_grise/carte_grise_v1.rb
Overview
Carte Grise API version 1 inference prediction.
Class Attribute Summary collapse
-
.endpoint_name ⇒ String
readonly
Name of the endpoint for this product.
-
.endpoint_version ⇒ String
readonly
Version for this product.
-
.has_async ⇒ bool
readonly
Whether this product has access to an asynchronous endpoint.
-
.has_sync ⇒ bool
readonly
Whether this product has access to synchronous endpoint.
Attributes inherited from Mindee::Parsing::Common::Inference
#endpoint_name, #endpoint_version, #has_async, #has_sync, #is_rotation_applied, #pages, #prediction, #product
Instance Method Summary collapse
-
#initialize(prediction) ⇒ CarteGriseV1
constructor
A new instance of CarteGriseV1.
Methods inherited from Mindee::Parsing::Common::Inference
Constructor Details
#initialize(prediction) ⇒ CarteGriseV1
Returns a new instance of CarteGriseV1.
20 21 22 23 24 25 26 27 |
# File 'lib/mindee/product/fr/carte_grise/carte_grise_v1.rb', line 20 def initialize(prediction) super @prediction = CarteGriseV1Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| @pages.push(CarteGriseV1Page.new(page)) end end |
Class Attribute Details
.endpoint_name ⇒ String (readonly)
Name of the endpoint for this product.
32 33 34 |
# File 'lib/mindee/product/fr/carte_grise/carte_grise_v1.rb', line 32 def endpoint_name @endpoint_name end |
.endpoint_version ⇒ String (readonly)
Version for this product.
35 36 37 |
# File 'lib/mindee/product/fr/carte_grise/carte_grise_v1.rb', line 35 def endpoint_version @endpoint_version end |
.has_async ⇒ bool (readonly)
Whether this product has access to an asynchronous endpoint.
38 39 40 |
# File 'lib/mindee/product/fr/carte_grise/carte_grise_v1.rb', line 38 def has_async @has_async end |
.has_sync ⇒ bool (readonly)
Whether this product has access to synchronous endpoint.
41 42 43 |
# File 'lib/mindee/product/fr/carte_grise/carte_grise_v1.rb', line 41 def has_sync @has_sync end |