Method: JSS::Policy#package_ids

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

#package_idsArray

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

Returns:

  • (Array)

    the id’s of the packages handled by the policy



1130
1131
1132
# File 'lib/jss/api_object/policy.rb', line 1130

def package_ids
  @packages.map { |p| p[:id] }
end