lib/jss/api_object/account.rb in ruby-jss-0.8.2 vs lib/jss/api_object/account.rb in ruby-jss-0.9.0.b1

- old
+ new

@@ -59,10 +59,15 @@ # The hash key used for the JSON object output. # It's also used in various error messages RSRC_OBJECT_KEY = :account # these keys, as well as :id and :name, can be used to look up objects of this class in the JSS - OTHER_LOOKUP_KEYS = [:userid, :username, :groupid, :groupname].freeze + OTHER_LOOKUP_KEYS = { + userid: {rsrc_key: :userid, list: :all_user_ids}, + username: {rsrc_key: :username, list: :all_user_names}, + groupid: {rsrc_key: :groupid, list: :all_group_ids}, + groupname: {rsrc_key: :groupname, list: :all_group_names} + }.freeze # Class Methods ##################################### # @return [Array<Hash>] all JSS account users