Method: JSS::MobileDevice.all_unsupervised

Defined in:
lib/jss/api_object/mobile_device.rb

.all_unsupervised(refresh = false, api: JSS.api) ⇒ Array<Hash>

Returns the list of all unsupervised mobile devices.

Returns:

  • (Array<Hash>)

    the list of all unsupervised mobile devices



169
170
171
# File 'lib/jss/api_object/mobile_device.rb', line 169

def self.all_unsupervised(refresh = false, api: JSS.api)
  all(refresh, api: api).reject { |d| d[:supervised] }
end