Class: Solr::Response::Ping
Instance Attribute Summary
Attributes inherited from Xml
#doc, #status_code, #status_message
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(xml) ⇒ Ping
constructor
A new instance of Ping.
-
#ok? ⇒ Boolean
returns true or false depending on whether the ping was successful or not.
Methods inherited from Base
Constructor Details
#initialize(xml) ⇒ Ping
Returns a new instance of Ping.
17 18 19 20 |
# File 'lib/solr/response/ping.rb', line 17 def initialize(xml) super @ok = REXML::XPath.first(@doc, './solr/ping') ? true : false end |
Instance Method Details
#ok? ⇒ Boolean
returns true or false depending on whether the ping was successful or not
24 25 26 |
# File 'lib/solr/response/ping.rb', line 24 def ok? @ok end |