Class: JSS::Department
- Defined in:
- lib/jss-api/api_object/department.rb,
lib/jss-api.rb
Overview
A department in the JSS. These are simple, in that they only have an ID and a name
Constant Summary collapse
- RSRC_BASE =
The base for REST resources of this class
"departments"
- RSRC_LIST_KEY =
the hash key used for the JSON list output of all objects in the JSS
:departments
- RSRC_OBJECT_KEY =
The hash key used for the JSON object output. It’s also used in various error messages
:department
- VALID_DATA_KEYS =
these keys, as well as :id and :name, are present in valid API JSON data for this class
[]
Constants included from Updatable
Constants included from Creatable
Constants inherited from APIObject
APIObject::DEFAULT_LOOKUP_KEYS, APIObject::REQUIRED_DATA_KEYS
Instance Attribute Summary
Attributes included from Updatable
Attributes inherited from APIObject
#id, #in_jss, #name, #rest_rsrc
Method Summary
Methods included from Updatable
Methods included from Creatable
Methods inherited from APIObject
all, all_ids, all_names, #delete, get_name, #initialize, map_all_ids_to, #save, xml_list
Constructor Details
This class inherits a constructor from JSS::APIObject