Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock
- 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
-
#content ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
-
#references ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1References
Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details.
-
#topic ⇒ String
The topic of the content, for example "overview" or "restaurant".
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1ContentBlock
constructor
A new instance of GoogleMapsPlacesV1ContentBlock.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#content ⇒ Google::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 |
#references ⇒ Google::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 |
#topic ⇒ String
The topic of the content, for example "overview" or "restaurant".
Corresponds to the JSON property topic
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 |