Class: Google::Apis::AndroidmanagementV1::LostModeLocationEvent

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

A lost mode event containing the device location and battery level as a percentage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LostModeLocationEvent

Returns a new instance of LostModeLocationEvent.



3271
3272
3273
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3271

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

Instance Attribute Details

#battery_levelFixnum

The battery level as a number between 0 and 100 inclusive Corresponds to the JSON property batteryLevel

Returns:

  • (Fixnum)


3264
3265
3266
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3264

def battery_level
  @battery_level
end

#locationGoogle::Apis::AndroidmanagementV1::Location

The device location containing the latitude and longitude. Corresponds to the JSON property location



3269
3270
3271
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3269

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3276
3277
3278
3279
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3276

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