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.
325 326 327 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 325 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
305 306 307 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 305 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
310 311 312 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 310 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
317 318 319 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 317 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
323 324 325 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 323 def service_types @service_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
330 331 332 333 334 335 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 330 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 |