Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review

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

Information about a review of a place.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1Review

Returns a new instance of GoogleMapsPlacesV1Review.



2375
2376
2377
# File 'lib/google/apis/places_v1/classes.rb', line 2375

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

Instance Attribute Details

#author_attributionGoogle::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution

Information about the author of the UGC data. Used in Photo, and Review. Corresponds to the JSON property authorAttribution



2330
2331
2332
# File 'lib/google/apis/places_v1/classes.rb', line 2330

def author_attribution
  @author_attribution
end

#flag_content_uriString

A link where users can flag a problem with the review. Corresponds to the JSON property flagContentUri

Returns:

  • (String)


2335
2336
2337
# File 'lib/google/apis/places_v1/classes.rb', line 2335

def flag_content_uri
  @flag_content_uri
end

#google_maps_uriString

A link to show the review on Google Maps. Corresponds to the JSON property googleMapsUri

Returns:

  • (String)


2340
2341
2342
# File 'lib/google/apis/places_v1/classes.rb', line 2340

def google_maps_uri
  @google_maps_uri
end

#nameString

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`

Returns:

  • (String)


2347
2348
2349
# File 'lib/google/apis/places_v1/classes.rb', line 2347

def name
  @name
end

#original_textGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

Localized variant of a text in a particular language. Corresponds to the JSON property originalText



2352
2353
2354
# File 'lib/google/apis/places_v1/classes.rb', line 2352

def original_text
  @original_text
end

#publish_timeString

Timestamp for the review. Corresponds to the JSON property publishTime

Returns:

  • (String)


2357
2358
2359
# File 'lib/google/apis/places_v1/classes.rb', line 2357

def publish_time
  @publish_time
end

#ratingFloat

A number between 1.0 and 5.0, also called the number of stars. Corresponds to the JSON property rating

Returns:

  • (Float)


2362
2363
2364
# File 'lib/google/apis/places_v1/classes.rb', line 2362

def rating
  @rating
end

#relative_publish_time_descriptionString

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

Returns:

  • (String)


2368
2369
2370
# File 'lib/google/apis/places_v1/classes.rb', line 2368

def relative_publish_time_description
  @relative_publish_time_description
end

#textGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

Localized variant of a text in a particular language. Corresponds to the JSON property text



2373
2374
2375
# File 'lib/google/apis/places_v1/classes.rb', line 2373

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
# File 'lib/google/apis/places_v1/classes.rb', line 2380

def update!(**args)
  @author_attribution = args[:author_attribution] if args.key?(:author_attribution)
  @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
  @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
  @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