Class: Google::Apis::MybusinessbusinessinformationV1::Chain

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Chain

Returns a new instance of Chain.



381
382
383
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 381

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#chain_namesArray<Google::Apis::MybusinessbusinessinformationV1::ChainName>

Names of the chain. Corresponds to the JSON property chainNames



364
365
366
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 364

def chain_names
  @chain_names
end

#location_countFixnum

Number of locations that are part of this chain. Corresponds to the JSON property locationCount

Returns:

  • (Fixnum)


369
370
371
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 369

def location_count
  @location_count
end

#nameString

Required. The chain's resource name, in the format chains/chain_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


374
375
376
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 374

def name
  @name
end

#websitesArray<Google::Apis::MybusinessbusinessinformationV1::ChainUri>

Websites of the chain. Corresponds to the JSON property websites



379
380
381
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 379

def websites
  @websites
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



386
387
388
389
390
391
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 386

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