lib/splunk_search.rb
# returns boolean - if the search is complete
returns boolean - if the search is complete
returns boolean - if the search is complete
def complete?
        xml = @client.get_request("/services/search/jobs/#{@sid}")
        doc = Nokogiri::XML(xml)
        text = doc.xpath("//s:key[@name='isDone']").text
        text.to_i == 1
    end
def complete? xml = @client . get_request ( "/services/search/jobs/#{@sid}" ) doc = Nokogiri :: XML ( xml ) text = doc . xpath ( "//s:key[@name='isDone']" ) . text text . to_i == 1 end
returns boolean - if the search is complete
returns boolean - if the search is complete