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.



2753
2754
2755
# File 'lib/google/apis/drive_v2/classes.rb', line 2753

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

Instance Attribute Details

#altitudeFloat

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

Returns:

  • (Float)


2741
2742
2743
# File 'lib/google/apis/drive_v2/classes.rb', line 2741

def altitude
  @altitude
end

#latitudeFloat

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

Returns:

  • (Float)


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

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


2751
2752
2753
# File 'lib/google/apis/drive_v2/classes.rb', line 2751

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2758
2759
2760
2761
2762
# File 'lib/google/apis/drive_v2/classes.rb', line 2758

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