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.



1437
1438
1439
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1437

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)


1430
1431
1432
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1430

def place_id
  @place_id
end

#relation_typeString

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

Returns:

  • (String)


1435
1436
1437
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1435

def relation_type
  @relation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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