Class: Google::Apis::DriveV2::File::ImageMediaMetadata::Location
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File::ImageMediaMetadata::Location
- 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
Output only. Geographic location information stored in the image.
Instance Attribute Summary collapse
-
#altitude ⇒ Float
Output only.
-
#latitude ⇒ Float
Output only.
-
#longitude ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
3000 3001 3002 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3000 def initialize(**args) update!(**args) end |
Instance Attribute Details
#altitude ⇒ Float
Output only. The altitude stored in the image.
Corresponds to the JSON property altitude
2988 2989 2990 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2988 def altitude @altitude end |
#latitude ⇒ Float
Output only. The latitude stored in the image.
Corresponds to the JSON property latitude
2993 2994 2995 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2993 def latitude @latitude end |
#longitude ⇒ Float
Output only. The longitude stored in the image.
Corresponds to the JSON property longitude
2998 2999 3000 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2998 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3005 3006 3007 3008 3009 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3005 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 |