Module: Jamf::Undeletable

Defined in:
lib/jamf/api/jamf_pro/mixins/undeletable.rb

Overview

This mixin overrides CollectionResource.deletable? to return false, meaning that CollectionResource.delete and #delete will raise an exception It should be extended into subclasses of CollectionResource

Note that SingletonResource subclasses are never deletable

Instance Method Summary collapse

Instance Method Details

#deletable?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/jamf/api/jamf_pro/mixins/undeletable.rb', line 34

def deletable?
  false
end