Class: Google::Apis::MybusinessV3::GoogleUpdatedLocation

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

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

Returns a new instance of GoogleUpdatedLocation



685
686
687
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 685

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

Instance Attribute Details

#diff_maskString

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

Returns:

  • (String)


673
674
675
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 673

def diff_mask
  @diff_mask
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



683
684
685
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 683

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



690
691
692
693
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 690

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