Class: JSS::MobileDeviceGroup
- Defined in:
- lib/jss/api_object/group/mobile_device_group.rb,
lib/jss.rb
Overview
A Mobile Device group in the JSS
See also the parent class JSS::Group
Constant Summary collapse
- RSRC_BASE =
The base for REST resources of this class
"mobiledevicegroups"
- RSRC_LIST_KEY =
the hash key used for the JSON list output of all objects in the JSS
:mobile_device_groups
- RSRC_OBJECT_KEY =
The hash key used for the JSON object output. It’s also used in various error messages
:mobile_device_group
- VALID_DATA_KEYS =
these keys, as well as :id and :name, are present in valid API JSON data for this class
[:is_smart, :mobile_devices ]
- MEMBER_CLASS =
this allows the parent Group class to do things right
JSS::MobileDevice
Instance Attribute Summary collapse
-
#criteria ⇒ JSS::Criteriable::Criteria
included
from Criteriable
The criteria for the instance into which we’re mixed.
-
#need_to_update ⇒ Boolean
included
from Updatable
readonly
Do we have unsaved changes?.
Instance Method Summary collapse
-
#member_mac_addresses ⇒ Array<String>
Return an array of the mac_addrs of mobile_devices in this group.
-
#member_serial_numbers ⇒ Array<String>
Return an array of the serial numbers of mobile_devices in this group.
-
#member_udids ⇒ Array<String>
Return an array of the udids of mobile_devices in this group.
-
#member_wifi_mac_addresses ⇒ Array<String>
Return an array of the wifi mac_addrs of mobile_devices in this group.
Constructor Details
This class inherits a constructor from JSS::Group
Instance Attribute Details
#criteria ⇒ JSS::Criteriable::Criteria Originally defined in module Criteriable
Returns the criteria for the instance into which we’re mixed.
#need_to_update ⇒ Boolean (readonly) Originally defined in module Updatable
Returns do we have unsaved changes?.
Instance Method Details
#member_mac_addresses ⇒ Array<String>
Return an array of the mac_addrs of mobile_devices in this group
120 121 122 |
# File 'lib/jss/api_object/group/mobile_device_group.rb', line 120 def member_mac_addresses @members.map{|m| m[:mac_address]} end |
#member_serial_numbers ⇒ Array<String>
Return an array of the serial numbers of mobile_devices in this group
111 112 113 |
# File 'lib/jss/api_object/group/mobile_device_group.rb', line 111 def member_serial_numbers @members.map{|m| m[:serial_number]} end |