Class: Google::Apis::MybusinessbusinessinformationV1::RelevantLocation
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::RelevantLocation
- 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
-
#place_id ⇒ String
Required.
-
#relation_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RelevantLocation
constructor
A new instance of RelevantLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
Required. Specify the location that is on the other side of the relation by
its placeID.
Corresponds to the JSON property placeId
1430 1431 1432 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1430 def place_id @place_id end |
#relation_type ⇒ String
Required. The type of the relationship.
Corresponds to the JSON property relationType
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 |