Class: Mindee::Product::FR::BankAccountDetails::BankAccountDetailsV2
- Inherits:
-
Mindee::Parsing::Common::Inference
- Object
- Mindee::Parsing::Common::Inference
- Mindee::Product::FR::BankAccountDetails::BankAccountDetailsV2
- Defined in:
- lib/mindee/product/fr/bank_account_details/bank_account_details_v2.rb
Overview
Bank Account Details API version 2 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.
Attributes inherited from Mindee::Parsing::Common::Inference
#is_rotation_applied, #pages, #prediction, #product
Instance Method Summary collapse
-
#initialize(prediction) ⇒ BankAccountDetailsV2
constructor
A new instance of BankAccountDetailsV2.
Methods inherited from Mindee::Parsing::Common::Inference
Constructor Details
#initialize(prediction) ⇒ BankAccountDetailsV2
Returns a new instance of BankAccountDetailsV2.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/mindee/product/fr/bank_account_details/bank_account_details_v2.rb', line 18 def initialize(prediction) super @prediction = BankAccountDetailsV2Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| if page.key?('prediction') && !page['prediction'].nil? && !page['prediction'].empty? @pages.push(BankAccountDetailsV2Page.new(page)) end end end |
Class Attribute Details
.endpoint_name ⇒ String (readonly)
Name of the endpoint for this product.
32 33 34 |
# File 'lib/mindee/product/fr/bank_account_details/bank_account_details_v2.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/bank_account_details/bank_account_details_v2.rb', line 35 def endpoint_version @endpoint_version end |