Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary

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

Overview

Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details. AI-generated summary of the area that the place is in.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceAreaSummary

Returns a new instance of GoogleMapsPlacesV1PlaceAreaSummary.



1747
1748
1749
# File 'lib/google/apis/places_v1/classes.rb', line 1747

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

Instance Attribute Details

#content_blocksArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock>

Content blocks that compose the area summary. Each block has a separate topic about the area. Corresponds to the JSON property contentBlocks



1740
1741
1742
# File 'lib/google/apis/places_v1/classes.rb', line 1740

def content_blocks
  @content_blocks
end

#flag_content_uriString

A link where users can flag a problem with the summary. Corresponds to the JSON property flagContentUri

Returns:

  • (String)


1745
1746
1747
# File 'lib/google/apis/places_v1/classes.rb', line 1745

def flag_content_uri
  @flag_content_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1752
1753
1754
1755
# File 'lib/google/apis/places_v1/classes.rb', line 1752

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