Method: RestClient#initialize

Defined in:
lib/rest_client.rb

#initialize(host: '127.0.0.1', port: 9200) ⇒ RestClient

Returns a new instance of RestClient.



3
4
5
# File 'lib/rest_client.rb', line 3

def initialize host: '127.0.0.1', port: 9200
  @client = Elasticsearch::Client.new(host: host, port: port)
end