GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Review (google_api_places v0.11.0)

View Source

Information about a review of a place.

Attributes

  • authorAttribution (type: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution.t, default: nil) - This review's author.
  • flagContentUri (type: String.t, default: nil) - A link where users can flag a problem with the review.
  • googleMapsUri (type: String.t, default: nil) - A link to show the review on Google Maps.
  • name (type: String.t, default: nil) - 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}).
  • originalText (type: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t, default: nil) - The review text in its original language.
  • publishTime (type: DateTime.t, default: nil) - Timestamp for the review.
  • rating (type: float(), default: nil) - A number between 1.0 and 5.0, also called the number of stars.
  • relativePublishTimeDescription (type: String.t, default: nil) - 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 (type: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t, default: nil) - The localized text of the review.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Review{
  authorAttribution:
    GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution.t() | nil,
  flagContentUri: String.t() | nil,
  googleMapsUri: String.t() | nil,
  name: String.t() | nil,
  originalText: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
  publishTime: DateTime.t() | nil,
  rating: float() | nil,
  relativePublishTimeDescription: String.t() | nil,
  text: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.