class ElasticSearch::Transport::Base
Attributes
options[RW]
server[RW]
Public Class Methods
new(server, options={})
click to toggle source
# File lib/elasticsearch/transport/base.rb, line 16 def initialize(server, options={}) @server = server @options = DEFAULTS.merge(options) end
Public Instance Methods
all_nodes()
click to toggle source
# File lib/elasticsearch/transport/base.rb, line 32 def all_nodes raise NotImplementedError end
close()
click to toggle source
# File lib/elasticsearch/transport/base.rb, line 25 def close end
connect!()
click to toggle source
# File lib/elasticsearch/transport/base.rb, line 21 def connect! raise NotImplementedError end
encoder()
click to toggle source
# File lib/elasticsearch/transport/base.rb, line 28 def encoder @encoder ||= @options[:encoder].new end
request(method, operation, params={}, body=nil, headers={})
click to toggle source
# File lib/elasticsearch/transport/base.rb, line 36 def request(method, operation, params={}, body=nil, headers={}) raise NotImplementedError end