Class: Google::Apis::MybusinessV3::FindMatchingLocationsResponse

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

Response message for MyBusiness.FindMatchingLocations

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) ⇒ FindMatchingLocationsResponse

Returns a new instance of FindMatchingLocationsResponse.



1511
1512
1513
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1511

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

Instance Attribute Details

#match_timeString

When the matching algorithm was last executed for this location. Corresponds to the JSON property matchTime

Returns:

  • (String)


1509
1510
1511
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1509

def match_time
  @match_time
end

#matched_locationsArray<Google::Apis::MybusinessV3::MatchedLocation>

A collection of locations that are potential matches to the specified location, listed in order from best to least match. If there is an exact match, it will be in the first position. Corresponds to the JSON property matchedLocations



1504
1505
1506
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1504

def matched_locations
  @matched_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1516
1517
1518
1519
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1516

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