Class: Google::Apis::MybusinessbusinessinformationV1::GoogleLocation

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

Represents a Location that is present on Google. This can be a location that has been claimed by the user, someone else, or could be unclaimed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleLocation

Returns a new instance of GoogleLocation.



563
564
565
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 563

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

Instance Attribute Details

#locationGoogle::Apis::MybusinessbusinessinformationV1::Location

A location. See the help center article for a detailed description of these fields, or the category endpoint for a list of valid business categories. Corresponds to the JSON property location



548
549
550
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 548

def location
  @location
end

#nameString

Resource name of this GoogleLocation, in the format googleLocations/ googleLocationId`. Corresponds to the JSON propertyname`

Returns:

  • (String)


554
555
556
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 554

def name
  @name
end

#request_admin_rights_uriString

A URL that will redirect the user to the request admin rights UI. This field is only present if the location has already been claimed by any user, including the current user. Corresponds to the JSON property requestAdminRightsUri

Returns:

  • (String)


561
562
563
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 561

def request_admin_rights_uri
  @request_admin_rights_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



568
569
570
571
572
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 568

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @request_admin_rights_uri = args[:request_admin_rights_uri] if args.key?(:request_admin_rights_uri)
end