Class: Google::Apis::SpectrumV1explorer::GeoLocation

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

Overview

This parameter is used to specify the geolocation of the device.

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) ⇒ GeoLocation

Returns a new instance of GeoLocation



411
412
413
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 411

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

Instance Attribute Details

#confidenceFixnum

The location confidence level, as an integer percentage, may be required, depending on the regulatory domain. When the parameter is optional and not provided, its value is assumed to be 95. Valid values range from 0 to 99, since, in practice, 100-percent confidence is not achievable. The confidence value is meaningful only when geolocation refers to a point with uncertainty. Corresponds to the JSON property confidence

Returns:

  • (Fixnum)


399
400
401
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 399

def confidence
  @confidence
end

#pointGoogle::Apis::SpectrumV1explorer::GeoLocationEllipse

A "point" with uncertainty is represented using the Ellipse shape. Corresponds to the JSON property point



404
405
406
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 404

def point
  @point
end

#regionGoogle::Apis::SpectrumV1explorer::GeoLocationPolygon

A region is represented using the polygonal shape. Corresponds to the JSON property region



409
410
411
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 409

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



416
417
418
419
420
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 416

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @point = args[:point] if args.key?(:point)
  @region = args[:region] if args.key?(:region)
end