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.
-
#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.
292 293 294 |
# File 'lib/google/apis/places_v1/classes.rb', line 292 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
273 274 275 |
# File 'lib/google/apis/places_v1/classes.rb', line 273 def @author_attributions end |
#height_px ⇒ Fixnum
The maximum available height, in pixels.
Corresponds to the JSON property heightPx
278 279 280 |
# File 'lib/google/apis/places_v1/classes.rb', line 278 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 (a.k.a. the API "resource" name: places/
place_id/photos/photo).
Corresponds to the JSON property name
285 286 287 |
# File 'lib/google/apis/places_v1/classes.rb', line 285 def name @name end |
#width_px ⇒ Fixnum
The maximum available width, in pixels.
Corresponds to the JSON property widthPx
290 291 292 |
# File 'lib/google/apis/places_v1/classes.rb', line 290 def width_px @width_px end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
297 298 299 300 301 302 |
# File 'lib/google/apis/places_v1/classes.rb', line 297 def update!(**args) @author_attributions = args[:author_attributions] if args.key?(:author_attributions) @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 |