Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1References
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1References
- 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. Reference that the generative content is related to.
Instance Attribute Summary collapse
-
#places ⇒ Array<String>
The list of resource names of the referenced places.
-
#reviews ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>
Reviews that serve as references.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1References
constructor
A new instance of GoogleMapsPlacesV1References.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1References
Returns a new instance of GoogleMapsPlacesV1References.
2312 2313 2314 |
# File 'lib/google/apis/places_v1/classes.rb', line 2312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#places ⇒ Array<String>
The list of resource names of the referenced places. This name can be used in
other APIs that accept Place resource names.
Corresponds to the JSON property places
2305 2306 2307 |
# File 'lib/google/apis/places_v1/classes.rb', line 2305 def places @places end |
#reviews ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>
Reviews that serve as references.
Corresponds to the JSON property reviews
2310 2311 2312 |
# File 'lib/google/apis/places_v1/classes.rb', line 2310 def reviews @reviews end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2317 2318 2319 2320 |
# File 'lib/google/apis/places_v1/classes.rb', line 2317 def update!(**args) @places = args[:places] if args.key?(:places) @reviews = args[:reviews] if args.key?(:reviews) end |