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