Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution
- 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
-
#display_name ⇒ String
Name of the author of the Photo or Review.
-
#photo_uri ⇒ String
Profile photo URI of the author of the Photo or Review.
-
#uri ⇒ String
URI of the author of the Photo or Review.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1AuthorAttribution
constructor
A new instance of GoogleMapsPlacesV1AuthorAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
Name of the author of the Photo or Review.
Corresponds to the JSON property displayName
209 210 211 |
# File 'lib/google/apis/places_v1/classes.rb', line 209 def display_name @display_name end |
#photo_uri ⇒ String
Profile photo URI of the author of the Photo or Review.
Corresponds to the JSON property photoUri
214 215 216 |
# File 'lib/google/apis/places_v1/classes.rb', line 214 def photo_uri @photo_uri end |
#uri ⇒ String
URI of the author of the Photo or Review.
Corresponds to the JSON property uri
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 |