Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution

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 the author of the UGC data. Used in Photo, and Review.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1AuthorAttribution

Returns a new instance of GoogleMapsPlacesV1AuthorAttribution.



221
222
223
# File 'lib/google/apis/places_v1/classes.rb', line 221

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

Instance Attribute Details

#display_nameString

Name of the author of the Photo or Review. Corresponds to the JSON property displayName

Returns:

  • (String)


209
210
211
# File 'lib/google/apis/places_v1/classes.rb', line 209

def display_name
  @display_name
end

#photo_uriString

Profile photo URI of the author of the Photo or Review. Corresponds to the JSON property photoUri

Returns:

  • (String)


214
215
216
# File 'lib/google/apis/places_v1/classes.rb', line 214

def photo_uri
  @photo_uri
end

#uriString

URI of the author of the Photo or Review. Corresponds to the JSON property uri

Returns:

  • (String)


219
220
221
# File 'lib/google/apis/places_v1/classes.rb', line 219

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



226
227
228
229
230
# File 'lib/google/apis/places_v1/classes.rb', line 226

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @photo_uri = args[:photo_uri] if args.key?(:photo_uri)
  @uri = args[:uri] if args.key?(:uri)
end