Class: Google::Apis::AndroidmanagementV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::Location
- 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
-
#latitude ⇒ Float
The latitude position of the location Corresponds to the JSON property
latitude
. -
#longitude ⇒ Float
The longitude position of the location Corresponds to the JSON property
longitude
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
3225 3226 3227 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3225 def initialize(**args) update!(**args) end |
Instance Attribute Details
#latitude ⇒ Float
The latitude position of the location
Corresponds to the JSON property latitude
3218 3219 3220 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3218 def latitude @latitude end |
#longitude ⇒ Float
The longitude position of the location
Corresponds to the JSON property longitude
3223 3224 3225 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3223 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3230 3231 3232 3233 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3230 def update!(**args) @latitude = args[:latitude] if args.key?(:latitude) @longitude = args[:longitude] if args.key?(:longitude) end |