Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGoogleMapsLinks
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGoogleMapsLinks
- 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
Links to trigger different Google Maps actions.
Instance Attribute Summary collapse
-
#directions_uri ⇒ String
A link to show the directions to the place.
-
#photos_uri ⇒ String
A link to show photos of this place.
-
#place_uri ⇒ String
A link to show this place.
-
#reviews_uri ⇒ String
A link to show reviews of this place.
-
#write_a_review_uri ⇒ String
A link to write a review for this place.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceGoogleMapsLinks
constructor
A new instance of GoogleMapsPlacesV1PlaceGoogleMapsLinks.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceGoogleMapsLinks
Returns a new instance of GoogleMapsPlacesV1PlaceGoogleMapsLinks.
1888 1889 1890 |
# File 'lib/google/apis/places_v1/classes.rb', line 1888 def initialize(**args) update!(**args) end |
Instance Attribute Details
#directions_uri ⇒ String
A link to show the directions to the place. The link only populates the
destination location and uses the default travel mode DRIVE
.
Corresponds to the JSON property directionsUri
1863 1864 1865 |
# File 'lib/google/apis/places_v1/classes.rb', line 1863 def directions_uri @directions_uri end |
#photos_uri ⇒ String
A link to show photos of this place. This link is currently not supported on
Google Maps Mobile and only works on the web version of Google Maps.
Corresponds to the JSON property photosUri
1869 1870 1871 |
# File 'lib/google/apis/places_v1/classes.rb', line 1869 def photos_uri @photos_uri end |
#place_uri ⇒ String
A link to show this place.
Corresponds to the JSON property placeUri
1874 1875 1876 |
# File 'lib/google/apis/places_v1/classes.rb', line 1874 def place_uri @place_uri end |
#reviews_uri ⇒ String
A link to show reviews of this place. This link is currently not supported on
Google Maps Mobile and only works on the web version of Google Maps.
Corresponds to the JSON property reviewsUri
1880 1881 1882 |
# File 'lib/google/apis/places_v1/classes.rb', line 1880 def reviews_uri @reviews_uri end |
#write_a_review_uri ⇒ String
A link to write a review for this place. This link is currently not supported
on Google Maps Mobile and only works on the web version of Google Maps.
Corresponds to the JSON property writeAReviewUri
1886 1887 1888 |
# File 'lib/google/apis/places_v1/classes.rb', line 1886 def write_a_review_uri @write_a_review_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1893 1894 1895 1896 1897 1898 1899 |
# File 'lib/google/apis/places_v1/classes.rb', line 1893 def update!(**args) @directions_uri = args[:directions_uri] if args.key?(:directions_uri) @photos_uri = args[:photos_uri] if args.key?(:photos_uri) @place_uri = args[:place_uri] if args.key?(:place_uri) @reviews_uri = args[:reviews_uri] if args.key?(:reviews_uri) @write_a_review_uri = args[:write_a_review_uri] if args.key?(:write_a_review_uri) end |