Method: JSS::Policy#printer_ids

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

#printer_idsArray

Returns the id’s of the printers handled by the policy.

Returns:

  • (Array)

    the id’s of the printers handled by the policy



1308
1309
1310
1311
1312
1313
1314
# File 'lib/jss/api_object/policy.rb', line 1308

def printer_ids
    begin
        @printers.map { |p| p[:id] }
        rescue TypeError
        return []
    end
end