Class: Google::Apis::AdminDirectoryV1::BacklightInfo
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::BacklightInfo
- 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
-
#brightness ⇒ Fixnum
Output only.
-
#max_brightness ⇒ Fixnum
Output only.
-
#path ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BacklightInfo
constructor
A new instance of BacklightInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#brightness ⇒ Fixnum
Output only. Current brightness of the backlight, between 0 and max_brightness.
Corresponds to the JSON property brightness
234 235 236 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 234 def brightness @brightness end |
#max_brightness ⇒ Fixnum
Output only. Maximum brightness for the backlight.
Corresponds to the JSON property maxBrightness
239 240 241 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 239 def max_brightness @max_brightness end |
#path ⇒ String
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
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 |