Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock

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

A block of content that can be served individually.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1ContentBlock

Returns a new instance of GoogleMapsPlacesV1ContentBlock.



570
571
572
# File 'lib/google/apis/places_v1/classes.rb', line 570

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

Instance Attribute Details

#contentGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

Localized variant of a text in a particular language. Corresponds to the JSON property content



556
557
558
# File 'lib/google/apis/places_v1/classes.rb', line 556

def content
  @content
end

#referencesGoogle::Apis::PlacesV1::GoogleMapsPlacesV1References

Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details. Reference that the generative content is related to. Corresponds to the JSON property references



563
564
565
# File 'lib/google/apis/places_v1/classes.rb', line 563

def references
  @references
end

#topicString

The topic of the content, for example "overview" or "restaurant". Corresponds to the JSON property topic

Returns:

  • (String)


568
569
570
# File 'lib/google/apis/places_v1/classes.rb', line 568

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



575
576
577
578
579
# File 'lib/google/apis/places_v1/classes.rb', line 575

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @references = args[:references] if args.key?(:references)
  @topic = args[:topic] if args.key?(:topic)
end