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



573
574
575
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 573

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)


565
566
567
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 565

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)


571
572
573
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 571

def ownership
  @ownership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 578

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