Module: Elastictastic::TransportMethods

Included in:
Adapter, Middleware::Base, Rotor
Defined in:
lib/elastictastic/transport_methods.rb

Instance Method Summary collapse

Instance Method Details

#delete(path) ⇒ Object


21
22
23
# File 'lib/elastictastic/transport_methods.rb', line 21

def delete(path)
  request(:delete, path)
end

#get(path) ⇒ Object


9
10
11
# File 'lib/elastictastic/transport_methods.rb', line 9

def get(path)
  request(:get, path)
end

#head(path) ⇒ Object


5
6
7
# File 'lib/elastictastic/transport_methods.rb', line 5

def head(path)
  request(:head, path)
end

#post(path, body) ⇒ Object


13
14
15
# File 'lib/elastictastic/transport_methods.rb', line 13

def post(path, body)
  request(:post, path, body)
end

#put(path, body) ⇒ Object


17
18
19
# File 'lib/elastictastic/transport_methods.rb', line 17

def put(path, body)
  request(:put, path, body)
end