lib/jss/api_object/advanced_search.rb
def save(get_results = false)
      if @in_jss
        raise JSS::UnsupportedError, 'Updating this object in the JSS is currently not supported by ruby-jss' unless updatable?
        update get_results
      else
        raise JSS::UnsupportedError, 'Creating this object in the JSS is currently not supported by ruby-jss' unless creatable?
        create get_results
      end
    end
# Wrapper/alias for both create and update
Wrapper/alias for both create and update
Wrapper / alias for both create and update
def save(get_results = false)
      if @in_jss
        raise JSS::UnsupportedError, 'Updating this object in the JSS is currently not supported by ruby-jss' unless updatable?
        update get_results
      else
        raise JSS::UnsupportedError, 'Creating this object in the JSS is currently not supported by ruby-jss' unless creatable?
        create get_results
      end
    end
def save ( get_results = false ) if @in_jss raise JSS :: UnsupportedError , 'Updating this object in the JSS is currently not supported by ruby-jss' unless updatable? update get_results else raise JSS :: UnsupportedError , 'Creating this object in the JSS is currently not supported by ruby-jss' unless creatable? create get_results end end
Wrapper/alias for both create and update
Wrapper / alias for both create and update
get_results