Class: Google::Apis::YoutubeV3::GeoPoint
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::GeoPoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GeoPoint
Returns a new instance of GeoPoint
2936 2937 2938 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2936 def initialize(**args) update!(**args) end |
Instance Attribute Details
#altitude ⇒ Float
Altitude above the reference ellipsoid, in meters.
Corresponds to the JSON property altitude
2924 2925 2926 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2924 def altitude @altitude end |
#latitude ⇒ Float
Latitude in degrees.
Corresponds to the JSON property latitude
2929 2930 2931 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2929 def latitude @latitude end |
#longitude ⇒ Float
Longitude in degrees.
Corresponds to the JSON property longitude
2934 2935 2936 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2934 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2941 2942 2943 2944 2945 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2941 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 |