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

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

Overview

Geographic location information stored in the image.

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.


1763
1764
1765
# File 'generated/google/apis/drive_v2/classes.rb', line 1763

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

Instance Attribute Details

#altitudeFloat

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

Returns:

  • (Float)

1751
1752
1753
# File 'generated/google/apis/drive_v2/classes.rb', line 1751

def altitude
  @altitude
end

#latitudeFloat

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

Returns:

  • (Float)

1756
1757
1758
# File 'generated/google/apis/drive_v2/classes.rb', line 1756

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)

1761
1762
1763
# File 'generated/google/apis/drive_v2/classes.rb', line 1761

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1768
1769
1770
1771
1772
# File 'generated/google/apis/drive_v2/classes.rb', line 1768

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