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.
90 91 92 |
# File 'lib/google/apis/places_v1/classes.rb', line 90 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
78 79 80 |
# File 'lib/google/apis/places_v1/classes.rb', line 78 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
83 84 85 |
# File 'lib/google/apis/places_v1/classes.rb', line 83 def photo_uri @photo_uri end |
#uri ⇒ String
URI of the author of the Photo or Review.
Corresponds to the JSON property uri
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 |