Class: Google::Apis::MybusinessverificationsV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessverificationsV1::Location
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessverifications_v1/classes.rb,
lib/google/apis/mybusinessverifications_v1/representations.rb,
lib/google/apis/mybusinessverifications_v1/representations.rb
Overview
A subset of location info. See the help center article for a detailed description of these fields, or the category endpoint for a list of valid business categories.
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::MybusinessverificationsV1::PostalAddress
Represents a postal address, e.g.
-
#name ⇒ String
Required.
-
#primary_category_id ⇒ String
Required.
-
#primary_phone ⇒ String
Optional.
-
#website_uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
325 326 327 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::MybusinessverificationsV1::PostalAddress
Represents a postal address, e.g. for postal delivery or payments addresses.
Given a postal address, a postal service can deliver items to a premise, P.O.
Box or similar. It is not intended to model geographical locations (roads,
towns, mountains). In typical usage an address would be created via user input
or from importing existing data, depending on the type of process. Advice on
address input / editing: - Use an i18n-ready address widget such as https://
github.com/google/libaddressinput) - Users should not be presented with UI
elements for input or editing of fields outside countries where that field is
used. For more guidance on how to use this schema, please see: https://support.
google.com/business/answer/6397478
Corresponds to the JSON property address
289 290 291 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 289 def address @address end |
#name ⇒ String
Required. Location name should reflect your business's real-world name, as
used consistently on your storefront, website, and stationery, and as known to
customers. Any additional information, when relevant, can be included in other
fields of the resource (for example, Address, Categories). Don't add
unnecessary information to your name (for example, prefer "Google" over "
Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing
taglines, store codes, special characters, hours or closed/open status, phone
numbers, website URLs, service/product information, location/address or
directions, or containment information (for example, "Chase ATM in Duane Reade"
).
Corresponds to the JSON property name
303 304 305 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 303 def name @name end |
#primary_category_id ⇒ String
Required. Id of the category that best describes the core business this
location engages in.
Corresponds to the JSON property primaryCategoryId
309 310 311 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 309 def primary_category_id @primary_category_id end |
#primary_phone ⇒ String
Optional. A phone number that connects to your individual business location as
directly as possible. Use a local phone number instead of a central, call
center helpline number whenever possible.
Corresponds to the JSON property primaryPhone
316 317 318 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 316 def primary_phone @primary_phone end |
#website_uri ⇒ String
Optional. A URL for this business. If possible, use a URL that represents this
individual business location instead of a generic website/URL that represents
all locations, or the brand.
Corresponds to the JSON property websiteUri
323 324 325 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 323 def website_uri @website_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
330 331 332 333 334 335 336 |
# File 'lib/google/apis/mybusinessverifications_v1/classes.rb', line 330 def update!(**args) @address = args[:address] if args.key?(:address) @name = args[:name] if args.key?(:name) @primary_category_id = args[:primary_category_id] if args.key?(:primary_category_id) @primary_phone = args[:primary_phone] if args.key?(:primary_phone) @website_uri = args[:website_uri] if args.key?(:website_uri) end |