Module: Neoon::Client::Request

Included in:
Connection
Defined in:
lib/neoon/client/request.rb

Instance Method Summary collapse

Instance Method Details

#cypher(query, parameters = {}) ⇒ Object Also known as: q



7
8
9
10
# File 'lib/neoon/client/request.rb', line 7

def cypher(query, parameters = {})
  options = { :query => query, :params => parameters }
  post('/cypher', options)
end

#delete(path, options = {}) ⇒ Object



25
26
27
# File 'lib/neoon/client/request.rb', line 25

def delete(path, options={})
  make_request(:delete, '/db/data' + path, options)
end

#get(path, options = {}) ⇒ Object



13
14
15
# File 'lib/neoon/client/request.rb', line 13

def get(path, options={})
  make_request(:get, '/db/data' + path, options)
end

#post(path, options = {}) ⇒ Object



17
18
19
# File 'lib/neoon/client/request.rb', line 17

def post(path, options={})
  make_request(:post, '/db/data' + path, options)
end

#put(path, options = {}) ⇒ Object



21
22
23
# File 'lib/neoon/client/request.rb', line 21

def put(path, options={})
  make_request(:put, '/db/data' + path, options)
end