lib/jss/api_object/scopable/scope.rb
def group_ids(raw)
        if @target_class == JSS::MobileDevice
          raw.map { |mdg| mdg[:id] }
        else
          names_to_ids = @group_class.map_all_ids_to(:name).invert
          raw.map { |gn| names_to_ids[gn] }
        end
      end
# Given the raw API data for a machines group membership,
# return an array of the IDs of the groups.
#
# @param raw[Array] The API array of the machine's group memberships
#
# @return [Array] The ID's of the groups to which the machine belongs.
#
Given the raw API data for a machines group membership,
return an array of the IDs of the groups.
Given the raw API data for a machines group membership return an array of the IDs of the groups .
def group_ids(raw)
        if @target_class == JSS::MobileDevice
          raw.map { |mdg| mdg[:id] }
        else
          names_to_ids = @group_class.map_all_ids_to(:name).invert
          raw.map { |gn| names_to_ids[gn] }
        end
      end
def group_ids ( raw ) if @target_class == JSS :: MobileDevice raw . map { | mdg | mdg [ :id ] } else names_to_ids = @group_class . map_all_ids_to ( :name ) . invert raw . map { | gn | names_to_ids [ gn ] } end end
Given the raw API data for a machines group membership,
return an array of the IDs of the groups.
Given the raw API data for a machines group membership return an array of the IDs of the groups .
The ID's of the groups to which the machine belongs.
The ID ' s of the groups to which the machine belongs .
Array
raw
The API array of the machine's group memberships
The API array of the machine ' s group memberships