Module: Jamf::Uncreatable

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

Overview

This mixin overrides CollectionResource.creatable? to return false, meaning that CollectionResource.create will raise an exception It should be extended into appropriate subclasses of CollectionResource

Note that SingletonResource subclasses are never creatable

Instance Method Summary collapse

Instance Method Details

#creatable?Boolean



17
18
19
# File 'lib/jamf/api/jamf_pro/mixins/uncreatable.rb', line 17

def creatable?
  false
end