lib/jss/api_object/scopable/scope.rb
# Remove a single item for limiting this scope.
#
# @param key[Symbol] the type of item being removed, :computer, :building, etc...
#
# @param item[String,integer] a valid identifier of the item being removed
#
# @example
#   remove_limitation(:network_segments, "foo")
#
# @return [void]
#
# @todo  handle ldap user/group lookups
#
Remove a single item for limiting this scope.
Remove a single item for limiting this scope .
def remove_limitation(key, item)
        key = pluralize_key(key)
        item_id = validate_item :limitation, key, item, error_if_not_found: false
        return unless item_id
        return unless @limitations[key]&.include?(item_id)
        @limitations[key].delete item_id
        @container&.should_update
      end
def remove_limitation ( key , item ) key = pluralize_key ( key ) item_id = validate_item :limitation , key , item , error_if_not_found : false return unless item_id return unless @limitations [ key ] &. include? ( item_id ) @limitations [ key ] . delete item_id @container &. should_update end
Remove a single item for limiting this scope.
Remove a single item for limiting this scope .
None
void
key
the type of item being removed, :computer, :building, etc
the type of item being removed : computer : building etc
item
a valid identifier of the item being removed
a valid identifier of the item being removed
example
None
todo
handle ldap user/group lookups
handle ldap user / group lookups