class Solr::Response::Ping
Public Class Methods
new(xml)
click to toggle source
Calls superclass method
Solr::Response::Xml::new
# File lib/solr/response/ping.rb, line 17 def initialize(xml) super @ok = REXML::XPath.first(@doc, './solr/ping') ? true : false end
Public Instance Methods
ok?()
click to toggle source
returns true or false depending on whether the ping was successful or not
# File lib/solr/response/ping.rb, line 24 def ok? @ok end