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.



362
363
364
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 362

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



345
346
347
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 345

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)


350
351
352
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 350

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)


355
356
357
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 355

def name
  @name
end

#websitesArray<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