Class: Google::Apis::AdminDirectoryV1::BacklightInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

Information about the device's backlights.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BacklightInfo

Returns a new instance of BacklightInfo.



247
248
249
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 247

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

Instance Attribute Details

#brightnessFixnum

Output only. Current brightness of the backlight, between 0 and max_brightness. Corresponds to the JSON property brightness

Returns:

  • (Fixnum)


234
235
236
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 234

def brightness
  @brightness
end

#max_brightnessFixnum

Output only. Maximum brightness for the backlight. Corresponds to the JSON property maxBrightness

Returns:

  • (Fixnum)


239
240
241
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 239

def max_brightness
  @max_brightness
end

#pathString

Output only. Path to this backlight on the system. Useful if the caller needs to correlate with other information. Corresponds to the JSON property path

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 245

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



252
253
254
255
256
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 252

def update!(**args)
  @brightness = args[:brightness] if args.key?(:brightness)
  @max_brightness = args[:max_brightness] if args.key?(:max_brightness)
  @path = args[:path] if args.key?(:path)
end