Class: Google::Apis::YoutubeV3::GeoPoint
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::GeoPoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Geographical coordinates of a point, in WGS84.
Instance Attribute Summary collapse
-
#altitude ⇒ Float
Altitude above the reference ellipsoid, in meters.
-
#latitude ⇒ Float
Latitude in degrees.
-
#longitude ⇒ Float
Longitude in degrees.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GeoPoint
constructor
A new instance of GeoPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GeoPoint
Returns a new instance of GeoPoint.
3032 3033 3034 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#altitude ⇒ Float
Altitude above the reference ellipsoid, in meters.
Corresponds to the JSON property altitude
3020 3021 3022 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3020 def altitude @altitude end |
#latitude ⇒ Float
Latitude in degrees.
Corresponds to the JSON property latitude
3025 3026 3027 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3025 def latitude @latitude end |
#longitude ⇒ Float
Longitude in degrees.
Corresponds to the JSON property longitude
3030 3031 3032 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3030 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3037 3038 3039 3040 3041 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3037 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 |