Class: Google::Apis::PhotoslibraryV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::PhotoslibraryV1::Location
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/photoslibrary_v1/classes.rb,
generated/google/apis/photoslibrary_v1/representations.rb,
generated/google/apis/photoslibrary_v1/representations.rb
Overview
Represents a physical location.
Instance Attribute Summary collapse
-
#latlng ⇒ Google::Apis::PhotoslibraryV1::LatLng
An object representing a latitude/longitude pair.
-
#location_name ⇒ String
Name of the location to be displayed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location
633 634 635 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 633 def initialize(**args) update!(**args) end |
Instance Attribute Details
#latlng ⇒ Google::Apis::PhotoslibraryV1::LatLng
An object representing a latitude/longitude pair. This is expressed as a pair
of doubles representing degrees latitude and degrees longitude. Unless
specified otherwise, this must conform to the
WGS84
standard. Values must be within normalized ranges.
Corresponds to the JSON property latlng
626 627 628 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 626 def latlng @latlng end |
#location_name ⇒ String
Name of the location to be displayed.
Corresponds to the JSON property locationName
631 632 633 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 631 def location_name @location_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
638 639 640 641 |
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 638 def update!(**args) @latlng = args[:latlng] if args.key?(:latlng) @location_name = args[:location_name] if args.key?(:location_name) end |