Class: Google::Apis::MybusinessV3::MatchedLocation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb

Overview

Represents a possible match to a location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MatchedLocation

Returns a new instance of MatchedLocation



1281
1282
1283
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1281

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

Instance Attribute Details

#is_exact_matchBoolean Also known as: is_exact_match?

Is this an exact match? Corresponds to the JSON property isExactMatch

Returns:

  • (Boolean)


1268
1269
1270
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1268

def is_exact_match
  @is_exact_match
end

#locationGoogle::Apis::MybusinessV3::Location

A location. See the help center article for a detailed description of these fields, or the [category list](/my-business/content/categories] for a list of valid business categories. Corresponds to the JSON property location



1279
1280
1281
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1279

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1286
1287
1288
1289
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1286

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