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.



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

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



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

def location
  @location
end

#nameString

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

Returns:

  • (String)


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

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)


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

def request_admin_rights_uri
  @request_admin_rights_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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