Class: Google::Apis::DriveV3::File::ImageMediaMetadata::Location

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb

Overview

Geographic location information stored in the image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



1922
1923
1924
# File 'generated/google/apis/drive_v3/classes.rb', line 1922

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

Instance Attribute Details

#altitudeFloat

The altitude stored in the image. Corresponds to the JSON property altitude

Returns:

  • (Float)


1910
1911
1912
# File 'generated/google/apis/drive_v3/classes.rb', line 1910

def altitude
  @altitude
end

#latitudeFloat

The latitude stored in the image. Corresponds to the JSON property latitude

Returns:

  • (Float)


1915
1916
1917
# File 'generated/google/apis/drive_v3/classes.rb', line 1915

def latitude
  @latitude
end

#longitudeFloat

The longitude stored in the image. Corresponds to the JSON property longitude

Returns:

  • (Float)


1920
1921
1922
# File 'generated/google/apis/drive_v3/classes.rb', line 1920

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1927
1928
1929
1930
1931
# File 'generated/google/apis/drive_v3/classes.rb', line 1927

def update!(**args)
  @altitude = args[:altitude] if args.key?(:altitude)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end