Method: JSS::Computer.all_laptops

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

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

Returns all laptop computers in the jss.

Returns:

  • (Array<Hash>)

    all laptop computers in the jss



361
362
363
# File 'lib/jss/api_object/computer.rb', line 361

def self.all_laptops(refresh = false, api: JSS.api)
  all(refresh, api: api).select { |d| d[:model] =~ /book/i }
end