Class: Google::Apis::AdminDirectoryV1::BluetoothAdapterInfo

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 a device's Bluetooth adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressString

Output only. The MAC address of the adapter. Corresponds to the JSON property address

Returns:

  • (String)


497
498
499
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 497

def address
  @address
end

#num_connected_devicesFixnum

Output only. The number of devices connected to this adapter. Corresponds to the JSON property numConnectedDevices

Returns:

  • (Fixnum)


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