Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo

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 a photo of a place.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1Photo

Returns a new instance of GoogleMapsPlacesV1Photo.



709
710
711
# File 'lib/google/apis/places_v1/classes.rb', line 709

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#author_attributionsArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution>

This photo's authors. Corresponds to the JSON property authorAttributions



690
691
692
# File 'lib/google/apis/places_v1/classes.rb', line 690

def author_attributions
  @author_attributions
end

#height_pxFixnum

The maximum available height, in pixels. Corresponds to the JSON property heightPx

Returns:

  • (Fixnum)


695
696
697
# File 'lib/google/apis/places_v1/classes.rb', line 695

def height_px
  @height_px
end

#nameString

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 propertyname`

Returns:

  • (String)


702
703
704
# File 'lib/google/apis/places_v1/classes.rb', line 702

def name
  @name
end

#width_pxFixnum

The maximum available width, in pixels. Corresponds to the JSON property widthPx

Returns:

  • (Fixnum)


707
708
709
# File 'lib/google/apis/places_v1/classes.rb', line 707

def width_px
  @width_px
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



714
715
716
717
718
719
# File 'lib/google/apis/places_v1/classes.rb', line 714

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