Class: Google::Apis::MybusinessV3::Category
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::MybusinessV3::Category
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
 generated/google/apis/mybusiness_v3/representations.rb,
 generated/google/apis/mybusiness_v3/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 the category list.
Instance Attribute Summary collapse
- 
  
    
      #category_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A stable ID (provided by Google) for this category. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The human-readable name of the category. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Category 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Category. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Category
Returns a new instance of Category
| 492 493 494 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 492 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#category_id ⇒ String
A stable ID (provided by Google) for this category. While it is possible
to populate only the name field in a category, setting the category_id
field is
preferred.
If both fields are populated, the category_id takes precedence, and
the supplied name field is ignored, and populated based on the
value of this field.
Corresponds to the JSON property categoryId
| 485 486 487 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 485 def category_id @category_id end | 
#name ⇒ String
The human-readable name of the category.
Corresponds to the JSON property name
| 490 491 492 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 490 def name @name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 497 498 499 500 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 497 def update!(**args) @category_id = args[:category_id] if args.key?(:category_id) @name = args[:name] if args.key?(:name) end |