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.



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

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



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

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)


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

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



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

def parent_location
  @parent_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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