Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent

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. Content that is contextual to the place query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContent

Returns a new instance of GoogleMapsPlacesV1ContextualContent.



606
607
608
# File 'lib/google/apis/places_v1/classes.rb', line 606

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

Instance Attribute Details

#justificationsArray<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



593
594
595
# File 'lib/google/apis/places_v1/classes.rb', line 593

def justifications
  @justifications
end

#photosArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo>

Information (including references) about photos of this place, contexual to the place query. Corresponds to the JSON property photos



599
600
601
# File 'lib/google/apis/places_v1/classes.rb', line 599

def photos
  @photos
end

#reviewsArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>

List of reviews about this place, contexual to the place query. Corresponds to the JSON property reviews



604
605
606
# File 'lib/google/apis/places_v1/classes.rb', line 604

def reviews
  @reviews
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



611
612
613
614
615
# File 'lib/google/apis/places_v1/classes.rb', line 611

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