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.
714 715 716 |
# File 'lib/google/apis/places_v1/classes.rb', line 714 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
700 701 702 |
# File 'lib/google/apis/places_v1/classes.rb', line 700 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
707 708 709 |
# File 'lib/google/apis/places_v1/classes.rb', line 707 def references @references end |
#topic ⇒ String
The topic of the content, for example "overview" or "restaurant".
Corresponds to the JSON property topic
712 713 714 |
# File 'lib/google/apis/places_v1/classes.rb', line 712 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
719 720 721 722 723 |
# File 'lib/google/apis/places_v1/classes.rb', line 719 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 |