Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo
- 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 a photo of a place.
Instance Attribute Summary collapse
-
#author_attributions ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution>
This photo's authors.
-
#flag_content_uri ⇒ String
A link where users can flag a problem with the photo.
-
#google_maps_uri ⇒ String
A link to show the photo on Google Maps.
-
#height_px ⇒ Fixnum
The maximum available height, in pixels.
-
#name ⇒ String
Identifier.
-
#width_px ⇒ Fixnum
The maximum available width, in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1Photo
constructor
A new instance of GoogleMapsPlacesV1Photo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1Photo
Returns a new instance of GoogleMapsPlacesV1Photo.
1088 1089 1090 |
# File 'lib/google/apis/places_v1/classes.rb', line 1088 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author_attributions ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution>
This photo's authors.
Corresponds to the JSON property authorAttributions
1059 1060 1061 |
# File 'lib/google/apis/places_v1/classes.rb', line 1059 def @author_attributions end |
#flag_content_uri ⇒ String
A link where users can flag a problem with the photo.
Corresponds to the JSON property flagContentUri
1064 1065 1066 |
# File 'lib/google/apis/places_v1/classes.rb', line 1064 def flag_content_uri @flag_content_uri end |
#google_maps_uri ⇒ String
A link to show the photo on Google Maps.
Corresponds to the JSON property googleMapsUri
1069 1070 1071 |
# File 'lib/google/apis/places_v1/classes.rb', line 1069 def google_maps_uri @google_maps_uri end |
#height_px ⇒ Fixnum
The maximum available height, in pixels.
Corresponds to the JSON property heightPx
1074 1075 1076 |
# File 'lib/google/apis/places_v1/classes.rb', line 1074 def height_px @height_px end |
#name ⇒ String
Identifier. A reference representing this place photo which may be used to
look up this place photo again (also called the API "resource" name: places/
place_id/photos/
photo`).
Corresponds to the JSON property
name`
1081 1082 1083 |
# File 'lib/google/apis/places_v1/classes.rb', line 1081 def name @name end |
#width_px ⇒ Fixnum
The maximum available width, in pixels.
Corresponds to the JSON property widthPx
1086 1087 1088 |
# File 'lib/google/apis/places_v1/classes.rb', line 1086 def width_px @width_px end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'lib/google/apis/places_v1/classes.rb', line 1093 def update!(**args) @author_attributions = args[:author_attributions] if args.key?(:author_attributions) @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri) @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri) @height_px = args[:height_px] if args.key?(:height_px) @name = args[:name] if args.key?(:name) @width_px = args[:width_px] if args.key?(:width_px) end |