Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1Review
- 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
Information about a review of a place.
Instance Attribute Summary collapse
-
#author_attribution ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution
Information about the author of the UGC data.
-
#name ⇒ String
A reference representing this place review which may be used to look up this place review again (also called the API "resource" name:
places/place_id/ reviews/review``). -
#original_text ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
-
#publish_time ⇒ String
Timestamp for the review.
-
#rating ⇒ Float
A number between 1.0 and 5.0, also called the number of stars.
-
#relative_publish_time_description ⇒ String
A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
-
#text ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1Review
constructor
A new instance of GoogleMapsPlacesV1Review.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1Review
Returns a new instance of GoogleMapsPlacesV1Review.
2039 2040 2041 |
# File 'lib/google/apis/places_v1/classes.rb', line 2039 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author_attribution ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution
Information about the author of the UGC data. Used in Photo, and Review.
Corresponds to the JSON property authorAttribution
2004 2005 2006 |
# File 'lib/google/apis/places_v1/classes.rb', line 2004 def @author_attribution end |
#name ⇒ String
A reference representing this place review which may be used to look up this
place review again (also called the API "resource" name: places/place_id/
reviews/review`).
Corresponds to the JSON propertyname`
2011 2012 2013 |
# File 'lib/google/apis/places_v1/classes.rb', line 2011 def name @name end |
#original_text ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
Corresponds to the JSON property originalText
2016 2017 2018 |
# File 'lib/google/apis/places_v1/classes.rb', line 2016 def original_text @original_text end |
#publish_time ⇒ String
Timestamp for the review.
Corresponds to the JSON property publishTime
2021 2022 2023 |
# File 'lib/google/apis/places_v1/classes.rb', line 2021 def publish_time @publish_time end |
#rating ⇒ Float
A number between 1.0 and 5.0, also called the number of stars.
Corresponds to the JSON property rating
2026 2027 2028 |
# File 'lib/google/apis/places_v1/classes.rb', line 2026 def @rating end |
#relative_publish_time_description ⇒ String
A string of formatted recent time, expressing the review time relative to the
current time in a form appropriate for the language and country.
Corresponds to the JSON property relativePublishTimeDescription
2032 2033 2034 |
# File 'lib/google/apis/places_v1/classes.rb', line 2032 def relative_publish_time_description @relative_publish_time_description end |
#text ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
Corresponds to the JSON property text
2037 2038 2039 |
# File 'lib/google/apis/places_v1/classes.rb', line 2037 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2044 2045 2046 2047 2048 2049 2050 2051 2052 |
# File 'lib/google/apis/places_v1/classes.rb', line 2044 def update!(**args) @author_attribution = args[:author_attribution] if args.key?(:author_attribution) @name = args[:name] if args.key?(:name) @original_text = args[:original_text] if args.key?(:original_text) @publish_time = args[:publish_time] if args.key?(:publish_time) @rating = args[:rating] if args.key?(:rating) @relative_publish_time_description = args[:relative_publish_time_description] if args.key?(:relative_publish_time_description) @text = args[:text] if args.key?(:text) end |