Method: Jamf::Prestage::ClassMethods#scope_path
- Defined in:
- lib/jamf/api/jamf_pro/mixins/prestage.rb
#scope_path(prestage_id = nil) ⇒ Object
the endpoint path for the scope of a given prestage id
224 225 226 227 228 |
# File 'lib/jamf/api/jamf_pro/mixins/prestage.rb', line 224 def scope_path(prestage_id = nil) pfx = defined?(self::SCOPE_PATH_PREFIX) ? self::SCOPE_PATH_PREFIX : get_path prestage_id ? "#{pfx}/#{prestage_id}/#{SCOPE_PATH}" : "#{pfx}/#{SCOPE_PATH}" end |