lib/jss/api_object/criteriable/criteria.rb
def delete_criterion(priority)
        if @criteria[priority]
          raise JSS::MissingDataError, "Criteria can't be empty" if @criteria.count == 1
          @criteria.delete_at priority
          set_priorities
        end
        @container.should_update if @container
      end
###
### Remove a criterion from the criteria
###
### @param priority[Integer] the priority/index of the criterion to delete
###
### @return [void]
###
Remove a criterion from the criteria
Remove a criterion from the criteria
def delete_criterion(priority)
        if @criteria[priority]
          raise JSS::MissingDataError, "Criteria can't be empty" if @criteria.count == 1
          @criteria.delete_at priority
          set_priorities
        end
        @container.should_update if @container
      end
def delete_criterion ( priority ) if @criteria [ priority ] raise JSS :: MissingDataError , "Criteria can't be empty" if @criteria . count == 1 @criteria . delete_at priority set_priorities end @container . should_update if @container end
Remove a criterion from the criteria
Remove a criterion from the criteria
None
void
priority
the priority/index of the criterion to delete
the priority / index of the criterion to delete