def create(get_results = false)
      raise JSS::InvalidDataError, 'JSS::Criteriable::Criteria instance required' unless @criteria.is_a? JSS::Criteriable::Criteria
      raise JSS::InvalidDataError, 'display_fields must be an Array.' unless @display_fields.is_a? Array

      orig_timeout = @api.cnx.options[:timeout]
      @api.timeout = 1800
      super()
      requery_search_results if get_results
      @api.timeout = orig_timeout

      @id # remember to return the id
    end
def create(get_results = false)
      raise JSS::InvalidDataError, 'JSS::Criteriable::Criteria instance required' unless @criteria.is_a? JSS::Criteriable::Criteria
      raise JSS::InvalidDataError, 'display_fields must be an Array.' unless @display_fields.is_a? Array

      orig_timeout = @api.cnx.options[:timeout]
      @api.timeout = 1800
      super()
      requery_search_results if get_results
      @api.timeout = orig_timeout

      @id # remember to return the id
    end
Constructor


 @see APIObject#initialize

 init
 Public Instance Methods

 Create in the JSS

 If get_results is true, they'll be available in {#search_results}. This might be slow.

 @param get_results[Boolean] should the results of the search be queried immediately?

 @return [Integer] the id of the newly created search