Class: Google::Apis::DriveV2::File::ImageMediaMetadata::Location

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



2739
2740
2741
# File 'lib/google/apis/drive_v2/classes.rb', line 2739

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

Instance Attribute Details

#altitudeFloat

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

Returns:

  • (Float)


2727
2728
2729
# File 'lib/google/apis/drive_v2/classes.rb', line 2727

def altitude
  @altitude
end

#latitudeFloat

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

Returns:

  • (Float)


2732
2733
2734
# File 'lib/google/apis/drive_v2/classes.rb', line 2732

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


2737
2738
2739
# File 'lib/google/apis/drive_v2/classes.rb', line 2737

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2744
2745
2746
2747
2748
# File 'lib/google/apis/drive_v2/classes.rb', line 2744

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