lib/jss/api_object/category.rb
# Return a String with the XML Resource
# for submitting creation or changes to the JSS via
# the API via the Creatable or Updatable modules
#
# Most classes will redefine this method.
#
Return a String with the XML Resource
for submitting creation or changes to the JSS via
the API via the Creatable or Updatable modules

Most classes will redefine this method.
Return a String with the XML Resource for submitting creation or changes to the JSS via the API via the Creatable or Updatable modules Most classes will redefine this method .
def rest_xml
      doc = REXML::Document.new APIConnection::XML_HEADER
      tmpl = doc.add_element self.class::RSRC_OBJECT_KEY.to_s
      tmpl.add_element('name').text = @name
      tmpl.add_element('priority').text = @priority
      doc.to_s
    end
def rest_xml doc = REXML :: Document . new APIConnection :: XML_HEADER tmpl = doc . add_element self . class :: RSRC_OBJECT_KEY . to_s tmpl . add_element ( 'name' ) . text = @name tmpl . add_element ( 'priority' ) . text = @priority doc . to_s end
Return a String with the XML Resource
for submitting creation or changes to the JSS via
the API via the Creatable or Updatable modules
Return a String with the XML Resource for submitting creation or changes to the JSS via the API via the Creatable or Updatable modules