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.



3291
3292
3293
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3291

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)


3284
3285
3286
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3284

def battery_level
  @battery_level
end

#locationGoogle::Apis::AndroidmanagementV1::Location

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



3289
3290
3291
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3289

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3296
3297
3298
3299
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3296

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