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.


1542
1543
1544
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1542

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)

1539
1540
1541
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1539

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


1534
1535
1536
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1534

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1547
1548
1549
1550
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1547

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