Class: Google::Apis::YoutubeV3::GeoPoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GeoPoint

Returns a new instance of GeoPoint.


2926
2927
2928
# File 'generated/google/apis/youtube_v3/classes.rb', line 2926

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

Instance Attribute Details

#altitudeFloat

Altitude above the reference ellipsoid, in meters. Corresponds to the JSON property altitude

Returns:

  • (Float)

2914
2915
2916
# File 'generated/google/apis/youtube_v3/classes.rb', line 2914

def altitude
  @altitude
end

#latitudeFloat

Latitude in degrees. Corresponds to the JSON property latitude

Returns:

  • (Float)

2919
2920
2921
# File 'generated/google/apis/youtube_v3/classes.rb', line 2919

def latitude
  @latitude
end

#longitudeFloat

Longitude in degrees. Corresponds to the JSON property longitude

Returns:

  • (Float)

2924
2925
2926
# File 'generated/google/apis/youtube_v3/classes.rb', line 2924

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2931
2932
2933
2934
2935
# File 'generated/google/apis/youtube_v3/classes.rb', line 2931

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