Class: ContextDev::Models::AIExtractProductsResponse::Product
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::AIExtractProductsResponse::Product
- Defined in:
- lib/context_dev/models/ai_extract_products_response.rb
Defined Under Namespace
Modules: BillingFrequency, PricingModel
Instance Attribute Summary collapse
-
#billing_frequency ⇒ Symbol, ...
Billing frequency for the product.
-
#category ⇒ String?
Category of the product.
-
#currency ⇒ String?
Currency code for the price (e.g., USD, EUR).
-
#description ⇒ String
Description of the product.
-
#features ⇒ Array<String>
List of product features.
-
#image_url ⇒ String?
URL to the product image.
-
#images ⇒ Array<String>
URLs to product images on the page (up to 7).
-
#name ⇒ String
Name of the product.
-
#price ⇒ Float?
Price of the product.
-
#pricing_model ⇒ Symbol, ...
Pricing model for the product.
-
#sku ⇒ String?
Stock Keeping Unit (product identifier).
-
#tags ⇒ Array<String>
Tags associated with the product.
-
#target_audience ⇒ Array<String>
Target audience for the product (array of strings).
-
#url ⇒ String?
URL to the product page.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil) ⇒ Object
|
|
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 141
|
Instance Attribute Details
#billing_frequency ⇒ Symbol, ...
Billing frequency for the product
99 100 101 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 99 optional :billing_frequency, enum: -> { ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency }, nil?: true |
#category ⇒ String?
Category of the product
107 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 107 optional :category, String, nil?: true |
#currency ⇒ String?
Currency code for the price (e.g., USD, EUR)
113 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 113 optional :currency, String, nil?: true |
#description ⇒ String
Description of the product
57 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 57 required :description, String |
#features ⇒ Array<String>
List of product features
63 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 63 required :features, ContextDev::Internal::Type::ArrayOf[String] |
#image_url ⇒ String?
URL to the product image
119 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 119 optional :image_url, String, nil?: true |
#images ⇒ Array<String>
URLs to product images on the page (up to 7)
69 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 69 required :images, ContextDev::Internal::Type::ArrayOf[String] |
#name ⇒ String
Name of the product
75 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 75 required :name, String |
#price ⇒ Float?
Price of the product
125 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 125 optional :price, Float, nil?: true |
#pricing_model ⇒ Symbol, ...
Pricing model for the product
131 132 133 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 131 optional :pricing_model, enum: -> { ContextDev::Models::AIExtractProductsResponse::Product::PricingModel }, nil?: true |
#sku ⇒ String?
Stock Keeping Unit (product identifier). Null if no identifier is found.
81 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 81 required :sku, String, nil?: true |
#tags ⇒ Array<String>
Tags associated with the product
87 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 87 required :tags, ContextDev::Internal::Type::ArrayOf[String] |
#target_audience ⇒ Array<String>
Target audience for the product (array of strings)
93 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 93 required :target_audience, ContextDev::Internal::Type::ArrayOf[String] |
#url ⇒ String?
URL to the product page
139 |
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 139 optional :url, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/context_dev/models/ai_extract_products_response.rb', line 181
|