Class: Google::Apis::MybusinessV3::Duplicate

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

Information about the location that this location duplicates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Duplicate

Returns a new instance of Duplicate.



1361
1362
1363
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1361

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

Instance Attribute Details

#location_nameString

The resource name of the location that this duplicates. Only populated if the authenticated user has access rights to that location and that location is not deleted. Corresponds to the JSON property locationName

Returns:

  • (String)


1353
1354
1355
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1353

def location_name
  @location_name
end

#ownershipString

Indicates the ownership status between this location and the location that it duplicates. Corresponds to the JSON property ownership

Returns:

  • (String)


1359
1360
1361
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1359

def ownership
  @ownership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1366
1367
1368
1369
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1366

def update!(**args)
  @location_name = args[:location_name] if args.key?(:location_name)
  @ownership = args[:ownership] if args.key?(:ownership)
end