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.
3067 3068 3069 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3067 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
3060 3061 3062 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3060 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
3065 3066 3067 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3065 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3072 3073 3074 3075 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3072 def update!(**args) @battery_level = args[:battery_level] if args.key?(:battery_level) @location = args[:location] if args.key?(:location) end |