Class: Google::Apis::PhotoslibraryV1::Location

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#latlngGoogle::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_nameString

Name of the location to be displayed. Corresponds to the JSON property locationName

Returns:

  • (String)


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