Class: Google::Apis::MybusinessbusinessinformationV1::RelationshipData

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 of all parent and children locations related to this one.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RelationshipData

Returns a new instance of RelationshipData.



1407
1408
1409
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1407

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

Instance Attribute Details

#children_locationsArray<Google::Apis::MybusinessbusinessinformationV1::RelevantLocation>

The list of children locations that this location has relations with. Corresponds to the JSON property childrenLocations



1391
1392
1393
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1391

def children_locations
  @children_locations
end

#parent_chainString

The resource name of the Chain that this location is member of. How to find Chain ID Corresponds to the JSON property parentChain

Returns:

  • (String)


1397
1398
1399
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1397

def parent_chain
  @parent_chain
end

#parent_locationGoogle::Apis::MybusinessbusinessinformationV1::RelevantLocation

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. Corresponds to the JSON property parentLocation



1405
1406
1407
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1405

def parent_location
  @parent_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1412
1413
1414
1415
1416
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1412

def update!(**args)
  @children_locations = args[:children_locations] if args.key?(:children_locations)
  @parent_chain = args[:parent_chain] if args.key?(:parent_chain)
  @parent_location = args[:parent_location] if args.key?(:parent_location)
end