Class: Mindee::V2::Product::BaseProduct

Inherits:
Object
  • Object
show all
Defined in:
lib/mindee/v2/product/base_product.rb

Overview

Base class for all V2 products.

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseProduct

Returns a new instance of BaseProduct.

Raises:

  • (StandardError)


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_typeObject (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_typeObject (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

.slugObject (readonly)

Returns the value of attribute slug.



23
24
25
# File 'lib/mindee/v2/product/base_product.rb', line 23

def slug
  @slug
end