Class: Google::Apis::AndroidmanagementV1::Location

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

Overview

The device location containing the latitude and longitude.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



2979
2980
2981
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2979

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

Instance Attribute Details

#latitudeFloat

The latitude position of the location Corresponds to the JSON property latitude

Returns:

  • (Float)


2972
2973
2974
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2972

def latitude
  @latitude
end

#longitudeFloat

The longitude position of the location Corresponds to the JSON property longitude

Returns:

  • (Float)


2977
2978
2979
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2977

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2984
2985
2986
2987
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2984

def update!(**args)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end