lib/jamf/api/base_classes/prestage.rb
def scope(refresh = false)
      @scope = nil if refresh
      return @scope if @scope

      @scope = Jamf::PrestageScope.new @cnx.get(scope_rsrc)
      unless @scope.versionLock == @versionLock
        raise Jamf::VersionLockError, "The #{self.class} '#{name}' has been modified since it was fetched. Please refetch and try again"
      end

      @scope
    end
# The scope data for this prestage
#
# @param refresh[Boolean] reload fromthe API?
#
# @return [PrestageScope]
#
The scope data for this prestage
The scope data for this prestage
def scope(refresh = false)
      @scope = nil if refresh
      return @scope if @scope
      @scope = Jamf::PrestageScope.new @cnx.get(scope_rsrc)
      unless @scope.versionLock == @versionLock
        raise Jamf::VersionLockError, "The #{self.class} '#{name}' has been modified since it was fetched. Please refetch and try again"
      end
      @scope
    end
def scope ( refresh = false ) @scope = nil if refresh return @scope if @scope @scope = Jamf :: PrestageScope . new @cnx . get ( scope_rsrc ) unless @scope . versionLock == @versionLock raise Jamf :: VersionLockError , "The #{self.class} '#{name}' has been modified since it was fetched. Please refetch and try again" end @scope end
The scope data for this prestage
The scope data for this prestage
None
PrestageScope
refresh
None