Class: Google::Apis::MybusinessbusinessinformationV1::RelevantLocation

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

Information about another location that is related to current one. The relation can be any one of DEPARTMENT_OF or INDEPENDENT_ESTABLISHMENT_OF, and the location specified here can be on either side (parent/child) of the location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RelevantLocation

Returns a new instance of RelevantLocation.



1448
1449
1450
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1448

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

Instance Attribute Details

#place_idString

Required. Specify the location that is on the other side of the relation by its placeID. Corresponds to the JSON property placeId

Returns:

  • (String)


1441
1442
1443
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1441

def place_id
  @place_id
end

#relation_typeString

Required. The type of the relationship. Corresponds to the JSON property relationType

Returns:

  • (String)


1446
1447
1448
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1446

def relation_type
  @relation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1453
1454
1455
1456
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1453

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