lib/jss/api_object/patch_source.rb
def delete
      case self.class.name
      when 'JSS::PatchExternalSource'
        super
      when 'JSS::PatchInternalSource'
        raise JSS::UnsupportedError, 'PatchInteralSources cannot be deleted.'
      end
    end
# Delete this instance
# This method is needed to override APIObject#delete
Delete this instance
This method is needed to override APIObject#delete
Delete this instance This method is needed to override APIObject#delete
def delete
      case self.class.name
      when 'JSS::PatchExternalSource'
        super
      when 'JSS::PatchInternalSource'
        raise JSS::UnsupportedError, 'PatchInteralSources cannot be deleted.'
      end
    end
def delete case self . class . name when 'JSS::PatchExternalSource' super when 'JSS::PatchInternalSource' raise JSS :: UnsupportedError , 'PatchInteralSources cannot be deleted.' end end
Delete this instance
This method is needed to override APIObject#delete
Delete this instance This method is needed to override APIObject#delete