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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/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.



2004
2005
2006
# File 'lib/google/apis/drive_v3/classes.rb', line 2004

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

Instance Attribute Details

#altitudeFloat

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

Returns:

  • (Float)


1992
1993
1994
# File 'lib/google/apis/drive_v3/classes.rb', line 1992

def altitude
  @altitude
end

#latitudeFloat

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

Returns:

  • (Float)


1997
1998
1999
# File 'lib/google/apis/drive_v3/classes.rb', line 1997

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


2002
2003
2004
# File 'lib/google/apis/drive_v3/classes.rb', line 2002

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2009
2010
2011
2012
2013
# File 'lib/google/apis/drive_v3/classes.rb', line 2009

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