Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGoogleMapsLinks

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

Links to trigger different Google Maps actions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceGoogleMapsLinks

Returns a new instance of GoogleMapsPlacesV1PlaceGoogleMapsLinks.



1826
1827
1828
# File 'lib/google/apis/places_v1/classes.rb', line 1826

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

Instance Attribute Details

#directions_uriString

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

Returns:

  • (String)


1801
1802
1803
# File 'lib/google/apis/places_v1/classes.rb', line 1801

def directions_uri
  @directions_uri
end

#photos_uriString

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

Returns:

  • (String)


1807
1808
1809
# File 'lib/google/apis/places_v1/classes.rb', line 1807

def photos_uri
  @photos_uri
end

#place_uriString

A link to show this place. Corresponds to the JSON property placeUri

Returns:

  • (String)


1812
1813
1814
# File 'lib/google/apis/places_v1/classes.rb', line 1812

def place_uri
  @place_uri
end

#reviews_uriString

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

Returns:

  • (String)


1818
1819
1820
# File 'lib/google/apis/places_v1/classes.rb', line 1818

def reviews_uri
  @reviews_uri
end

#write_a_review_uriString

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

Returns:

  • (String)


1824
1825
1826
# File 'lib/google/apis/places_v1/classes.rb', line 1824

def write_a_review_uri
  @write_a_review_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1831
1832
1833
1834
1835
1836
1837
# File 'lib/google/apis/places_v1/classes.rb', line 1831

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