Class: Solr::Request::Ping

Inherits:
Base
  • Object
show all
Defined in:
lib/solr/request/ping.rb

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(options) Class.new do def response_format options end def handler options end end end end

Instance Method Summary collapse

Methods inherited from Base

#content_type

Instance Method Details

#handlerObject



33
34
35
# File 'lib/solr/request/ping.rb', line 33

def handler
  'admin/ping'
end

#response_formatObject



29
30
31
# File 'lib/solr/request/ping.rb', line 29

def response_format
  :xml
end