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.
381 382 383 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 381 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
364 365 366 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 364 def chain_names @chain_names end |
#location_count ⇒ Fixnum
Number of locations that are part of this chain.
Corresponds to the JSON property locationCount
369 370 371 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 369 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`
374 375 376 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 374 def name @name end |
#websites ⇒ Array<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 |