Class: Google::Apis::MybusinessbusinessinformationV1::GoogleUpdatedLocation

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 was modified by Google.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleUpdatedLocation

Returns a new instance of GoogleUpdatedLocation.



566
567
568
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 566

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

Instance Attribute Details

#diff_maskString

The fields that Google updated. Corresponds to the JSON property diffMask

Returns:

  • (String)


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

def diff_mask
  @diff_mask
end

#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



558
559
560
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 558

def location
  @location
end

#pending_maskString

The fields that have pending edits that haven't yet been pushed to Maps and Search. Corresponds to the JSON property pendingMask

Returns:

  • (String)


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

def pending_mask
  @pending_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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