Class: Mindee::V2::Product::BaseProduct
- Inherits:
-
Object
- Object
- Mindee::V2::Product::BaseProduct
- Defined in:
- lib/mindee/v2/product/base_product.rb
Overview
Base class for all V2 products.
Direct Known Subclasses
Mindee::V2::Parsing::BaseInference, Classification::Classification, Crop::Crop, Extraction::Extraction, OCR::OCR, Split::Split
Class Attribute Summary collapse
-
.params_type ⇒ Object
readonly
Returns the value of attribute params_type.
-
.response_type ⇒ Object
readonly
Returns the value of attribute response_type.
-
.slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize ⇒ BaseProduct
constructor
A new instance of BaseProduct.
Constructor Details
#initialize ⇒ BaseProduct
Returns a new instance of BaseProduct.
18 19 20 |
# File 'lib/mindee/v2/product/base_product.rb', line 18 def initialize raise StandardError, 'Cannot instantiate abstract class.' if instance_of?(BaseProduct) end |
Class Attribute Details
.params_type ⇒ Object (readonly)
Returns the value of attribute params_type.
23 24 25 |
# File 'lib/mindee/v2/product/base_product.rb', line 23 def params_type @params_type end |
.response_type ⇒ Object (readonly)
Returns the value of attribute response_type.
23 24 25 |
# File 'lib/mindee/v2/product/base_product.rb', line 23 def response_type @response_type end |
.slug ⇒ Object (readonly)
Returns the value of attribute slug.
23 24 25 |
# File 'lib/mindee/v2/product/base_product.rb', line 23 def slug @slug end |