lib/jss/api_object/mac_application.rb
def rest_xml
      doc = REXML::Document.new APIConnection::XML_HEADER
      obj = doc.add_element RSRC_OBJECT_KEY.to_s

      general = obj.add_element('general')

      general.add_element('version').text = @version
      general.add_element('is_free').text = @is_free.to_s
      general.add_element('bundle_id').text = @bundle_id
      general.add_element('url').text = @url

      obj << @scope.scope_xml

      add_self_service_xml doc
      add_category_to_xml doc
      add_site_to_xml doc
      add_vpp_xml doc

      doc.to_s

    end
### Return the xml for creating or updating this script in the JSS
###
Return the xml for creating or updating this script in the JSS
Return the xml for creating or updating this script in the JSS
def rest_xml
      doc = REXML::Document.new APIConnection::XML_HEADER
      obj = doc.add_element RSRC_OBJECT_KEY.to_s
      general = obj.add_element('general')
      general.add_element('version').text = @version
      general.add_element('is_free').text = @is_free.to_s
      general.add_element('bundle_id').text = @bundle_id
      general.add_element('url').text = @url
      obj << @scope.scope_xml
      add_self_service_xml doc
      add_category_to_xml doc
      add_site_to_xml doc
      add_vpp_xml doc
      doc.to_s
    end
def rest_xml doc = REXML :: Document . new APIConnection :: XML_HEADER obj = doc . add_element RSRC_OBJECT_KEY . to_s general = obj . add_element ( 'general' ) general . add_element ( 'version' ) . text = @version general . add_element ( 'is_free' ) . text = @is_free . to_s general . add_element ( 'bundle_id' ) . text = @bundle_id general . add_element ( 'url' ) . text = @url obj << @scope . scope_xml add_self_service_xml doc add_category_to_xml doc add_site_to_xml doc add_vpp_xml doc doc . to_s end
Return the xml for creating or updating this script in the JSS
Return the xml for creating or updating this script in the JSS