Class: Google::Apis::MybusinessbusinessinformationV1::Categories
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::Categories
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
A collection of categories that describes the business. During updates, both fields must be set. Clients are prohibited from individually updating the primary or additional categories using the update mask.
Instance Attribute Summary collapse
-
#additional_categories ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::Category>
Optional.
-
#primary_category ⇒ Google::Apis::MybusinessbusinessinformationV1::Category
A category describing what this business is (not what it does).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Categories
constructor
A new instance of Categories.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Categories
Returns a new instance of Categories.
284 285 286 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_categories ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::Category>
Optional. Additional categories to describe your business. Categories help
your customers find accurate, specific results for services they're interested
in. To keep your business information accurate and live, make sure that you
use as few categories as possible to describe your overall core business.
Choose categories that are as specific as possible, but representative of your
main business.
Corresponds to the JSON property additionalCategories
275 276 277 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 275 def additional_categories @additional_categories end |
#primary_category ⇒ Google::Apis::MybusinessbusinessinformationV1::Category
A category describing what this business is (not what it does). For a list of
valid category IDs, and the mappings to their human-readable names, see
categories.list
.
Corresponds to the JSON property primaryCategory
282 283 284 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 282 def primary_category @primary_category end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
289 290 291 292 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 289 def update!(**args) @additional_categories = args[:additional_categories] if args.key?(:additional_categories) @primary_category = args[:primary_category] if args.key?(:primary_category) end |