lib/jss/api_object/dock_item.rb
# the xml formated data for adding or updating this in the JSS
#
the xml formated data for adding or updating this in the JSS
the xml formated data for adding or updating this in the JSS
def rest_xml
      doc = REXML::Document.new APIConnection::XML_HEADER
      ns = doc.add_element RSRC_OBJECT_KEY.to_s
      ns.add_element('name').text = @name
      ns.add_element('type').text = @type.to_s
      ns.add_element('path').text = @path.to_s
      doc.to_s
    end
def rest_xml doc = REXML :: Document . new APIConnection :: XML_HEADER ns = doc . add_element RSRC_OBJECT_KEY . to_s ns . add_element ( 'name' ) . text = @name ns . add_element ( 'type' ) . text = @type . to_s ns . add_element ( 'path' ) . text = @path . to_s doc . to_s end
the xml formated data for adding or updating this in the JSS
the xml formated data for adding or updating this in the JSS