Method: Jamf::Computer.all_macbooks
- Defined in:
- lib/jamf/api/classic/api_objects/computer.rb
.all_macbooks(refresh = false, api: nil, cnx: Jamf.cnx) ⇒ Array<Hash>
Returns all macbooks in the jss.
348 349 350 351 352 |
# File 'lib/jamf/api/classic/api_objects/computer.rb', line 348 def self.all_macbooks(refresh = false, api: nil, cnx: Jamf.cnx) cnx = api if api all(refresh, cnx: cnx).select { |d| d[:model] =~ /^macbook\d/i } end |