Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb
Overview
Category represents catalog item category hierarchy.
Instance Attribute Summary collapse
-
#categories ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
constructor
A new instance of GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
Returns a new instance of GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy.
348 349 350 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 348 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categories ⇒ Array<String>
Required. Catalog item categories. Each category should be a UTF-8 encoded
string with a length limit of 2 KiB. Note that the order in the list denotes
the specificity (from least to most specific).
Corresponds to the JSON property categories
346 347 348 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 346 def categories @categories end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
353 354 355 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 353 def update!(**args) @categories = args[:categories] if args.key?(:categories) end |