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.



531
532
533
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 531

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



516
517
518
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 516

def location
  @location
end

#nameString

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

Returns:

  • (String)


522
523
524
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 522

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)


529
530
531
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 529

def request_admin_rights_uri
  @request_admin_rights_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



536
537
538
539
540
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 536

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