Class: Google::Apis::MybusinessbusinessinformationV1::Category
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::Category
- 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 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.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Output only.
-
#more_hours_types ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::MoreHoursType>
Output only.
-
#name ⇒ String
Required.
-
#service_types ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::ServiceType>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Category
constructor
A new instance of Category.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Category
Returns a new instance of Category.
344 345 346 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 344 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Output only. The human-readable name of the category. This is set when reading
the location. When modifying the location, category_id must be set.
Corresponds to the JSON property displayName
324 325 326 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 324 def display_name @display_name end |
#more_hours_types ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::MoreHoursType>
Output only. More hours types that are available for this business category.
Corresponds to the JSON property moreHoursTypes
329 330 331 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 329 def more_hours_types @more_hours_types end |
#name ⇒ String
Required. A stable ID (provided by Google) for this category. The value must
be specified when modifying the category (when creating or updating a location)
.
Corresponds to the JSON property name
336 337 338 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 336 def name @name end |
#service_types ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::ServiceType>
Output only. A list of all the service types that are available for this
business category.
Corresponds to the JSON property serviceTypes
342 343 344 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 342 def service_types @service_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
349 350 351 352 353 354 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 349 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @more_hours_types = args[:more_hours_types] if args.key?(:more_hours_types) @name = args[:name] if args.key?(:name) @service_types = args[:service_types] if args.key?(:service_types) end |