Class: Solr::Request::Ping
Overview
TODO: Consider something lazy like this? Solr::Request::Ping = Solr::Request.simple_request :format=>:xml, :handler=>‘admin/ping’ class Solr::Request
def self.simple_request()
Class.new do
def response_format
[:format]
end
def handler
[:handler]
end
end
end
end
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#handler ⇒ Object
33 34 35 |
# File 'lib/solr/request/ping.rb', line 33 def handler 'admin/ping' end |
#response_format ⇒ Object
29 30 31 |
# File 'lib/solr/request/ping.rb', line 29 def response_format :xml end |