def map_all_ids(class_name, refresh = false, to: nil)
      raise "'to:' value must be provided for mapping ids." unless to
      the_class = JSS.api_object_class(class_name)
      the_class.map_all_ids_to to, refresh, api: self
    end
def map_all_ids(class_name, refresh = false, to: nil)
      raise "'to:' value must be provided for mapping ids." unless to
      the_class = JSS.api_object_class(class_name)
      the_class.map_all_ids_to to, refresh, api: self
    end
Call the 'map_all_ids_to' method on a JSS::APIObject subclass
 using this APIConnection.

 @param class_name[String,Symbol] The name of a JSS::APIObject subclass
   see {JSS.api_object_class}

 @param refresh[Boolean] Should the data be re-read from the API?

 @param to[String,Symbol] the value to which the ids should be mapped

 @return [Hash] The ids for the class keyed to the requested identifier