Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PhotoMedia

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

A photo media from Places API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PhotoMedia

Returns a new instance of GoogleMapsPlacesV1PhotoMedia.



1118
1119
1120
# File 'lib/google/apis/places_v1/classes.rb', line 1118

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

Instance Attribute Details

#nameString

The resource name of a photo media in the format: places/place_id/photos/ photo_reference/media. Corresponds to the JSON property name

Returns:

  • (String)


1111
1112
1113
# File 'lib/google/apis/places_v1/classes.rb', line 1111

def name
  @name
end

#photo_uriString

A short-lived uri that can be used to render the photo. Corresponds to the JSON property photoUri

Returns:

  • (String)


1116
1117
1118
# File 'lib/google/apis/places_v1/classes.rb', line 1116

def photo_uri
  @photo_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1123
1124
1125
1126
# File 'lib/google/apis/places_v1/classes.rb', line 1123

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @photo_uri = args[:photo_uri] if args.key?(:photo_uri)
end