Class: Google::Apis::MybusinessbusinessinformationV1::Chain
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MybusinessbusinessinformationV1::Chain
 
 
- 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 chain is a brand that your business's locations can be affiliated with.
Instance Attribute Summary collapse
- 
  
    
      #chain_names  ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::ChainName> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Names of the chain.
 - 
  
    
      #location_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of locations that are part of this chain.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #websites  ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::ChainUri> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Websites of the chain.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Chain 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Chain.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ Chain
Returns a new instance of Chain.
      362 363 364  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 362 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#chain_names ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::ChainName>
Names of the chain.
Corresponds to the JSON property chainNames
      345 346 347  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 345 def chain_names @chain_names end  | 
  
#location_count ⇒ Fixnum
Number of locations that are part of this chain.
Corresponds to the JSON property locationCount
      350 351 352  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 350 def location_count @location_count end  | 
  
#name ⇒ String
Required. The chain's resource name, in the format chains/chain_id`.
Corresponds to the JSON propertyname`
      355 356 357  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 355 def name @name end  | 
  
#websites ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::ChainUri>
Websites of the chain.
Corresponds to the JSON property websites
      360 361 362  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 360 def websites @websites end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      367 368 369 370 371 372  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 367 def update!(**args) @chain_names = args[:chain_names] if args.key?(:chain_names) @location_count = args[:location_count] if args.key?(:location_count) @name = args[:name] if args.key?(:name) @websites = args[:websites] if args.key?(:websites) end  |