Class: Mindee::Product::InvoiceSplitter::InvoiceSplitterV1
- Inherits:
-
Mindee::Parsing::Common::Inference
- Object
- Mindee::Parsing::Common::Inference
- Mindee::Product::InvoiceSplitter::InvoiceSplitterV1
- Defined in:
- lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb
Overview
Invoice Splitter V1 prediction inference.
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) ⇒ InvoiceSplitterV1
constructor
A new instance of InvoiceSplitterV1.
Methods inherited from Mindee::Parsing::Common::Inference
Constructor Details
#initialize(prediction) ⇒ InvoiceSplitterV1
Returns a new instance of InvoiceSplitterV1.
17 18 19 20 21 22 23 24 |
# File 'lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb', line 17 def initialize(prediction) super @prediction = InvoiceSplitterV1Document.new(prediction['prediction'], nil) @pages = [] prediction['pages'].each do |page| @pages.push(InvoiceSplitterV1Page.new(page)) end end |
Class Attribute Details
.endpoint_name ⇒ String (readonly)
Name of the endpoint for this product.
29 30 31 |
# File 'lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb', line 29 def endpoint_name @endpoint_name end |
.endpoint_version ⇒ String (readonly)
Version for this product.
32 33 34 |
# File 'lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb', line 32 def endpoint_version @endpoint_version end |