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.



90
91
92
# File 'lib/google/apis/places_v1/classes.rb', line 90

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)


78
79
80
# File 'lib/google/apis/places_v1/classes.rb', line 78

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)


83
84
85
# File 'lib/google/apis/places_v1/classes.rb', line 83

def photo_uri
  @photo_uri
end

#uriString

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

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/places_v1/classes.rb', line 88

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



95
96
97
98
99
# File 'lib/google/apis/places_v1/classes.rb', line 95

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