Class: Google::Apis::AndroidmanagementV1::LostModeLocationEvent
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::LostModeLocationEvent
- 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
A lost mode event containing the device location and battery level as a percentage.
Instance Attribute Summary collapse
-
#battery_level ⇒ Fixnum
The battery level as a number between 0 and 100 inclusive Corresponds to the JSON property
batteryLevel. -
#location ⇒ Google::Apis::AndroidmanagementV1::Location
The device location containing the latitude and longitude.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LostModeLocationEvent
constructor
A new instance of LostModeLocationEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LostModeLocationEvent
Returns a new instance of LostModeLocationEvent.
4210 4211 4212 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4210 def initialize(**args) update!(**args) end |
Instance Attribute Details
#battery_level ⇒ Fixnum
The battery level as a number between 0 and 100 inclusive
Corresponds to the JSON property batteryLevel
4203 4204 4205 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4203 def battery_level @battery_level end |
#location ⇒ Google::Apis::AndroidmanagementV1::Location
The device location containing the latitude and longitude.
Corresponds to the JSON property location
4208 4209 4210 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4208 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4215 4216 4217 4218 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4215 def update!(**args) @battery_level = args[:battery_level] if args.key?(:battery_level) @location = args[:location] if args.key?(:location) end |