Class: Google::Apis::AdminDirectoryV1::BluetoothAdapterInfo
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::BluetoothAdapterInfo
- 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 a device's Bluetooth adapter.
Instance Attribute Summary collapse
-
#address ⇒ String
Output only.
-
#num_connected_devices ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BluetoothAdapterInfo
constructor
A new instance of BluetoothAdapterInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BluetoothAdapterInfo
Returns a new instance of BluetoothAdapterInfo.
504 505 506 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 504 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Output only. The MAC address of the adapter.
Corresponds to the JSON property address
497 498 499 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 497 def address @address end |
#num_connected_devices ⇒ Fixnum
Output only. The number of devices connected to this adapter.
Corresponds to the JSON property numConnectedDevices
502 503 504 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 502 def num_connected_devices @num_connected_devices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
509 510 511 512 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 509 def update!(**args) @address = args[:address] if args.key?(:address) @num_connected_devices = args[:num_connected_devices] if args.key?(:num_connected_devices) end |