Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent
- 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. Content that is contextual to the place query.
Instance Attribute Summary collapse
-
#justifications ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification>
Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details.
-
#photos ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo>
Information (including references) about photos of this place, contexual to the place query.
-
#reviews ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>
List of reviews about this place, contexual to the place query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContent
constructor
A new instance of GoogleMapsPlacesV1ContextualContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContent
Returns a new instance of GoogleMapsPlacesV1ContextualContent.
750 751 752 |
# File 'lib/google/apis/places_v1/classes.rb', line 750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#justifications ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification>
Experimental: See https://developers.google.com/maps/documentation/places/web-
service/experimental/places-generative for more details. Justifications for
the place.
Corresponds to the JSON property justifications
737 738 739 |
# File 'lib/google/apis/places_v1/classes.rb', line 737 def justifications @justifications end |
#photos ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo>
Information (including references) about photos of this place, contexual to
the place query.
Corresponds to the JSON property photos
743 744 745 |
# File 'lib/google/apis/places_v1/classes.rb', line 743 def photos @photos end |
#reviews ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>
List of reviews about this place, contexual to the place query.
Corresponds to the JSON property reviews
748 749 750 |
# File 'lib/google/apis/places_v1/classes.rb', line 748 def reviews @reviews end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
755 756 757 758 759 |
# File 'lib/google/apis/places_v1/classes.rb', line 755 def update!(**args) @justifications = args[:justifications] if args.key?(:justifications) @photos = args[:photos] if args.key?(:photos) @reviews = args[:reviews] if args.key?(:reviews) end |