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



5
6
7
8
# File 'lib/neoon/client/request.rb', line 5

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

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



23
24
25
# File 'lib/neoon/client/request.rb', line 23

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

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



11
12
13
# File 'lib/neoon/client/request.rb', line 11

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

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



15
16
17
# File 'lib/neoon/client/request.rb', line 15

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

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



19
20
21
# File 'lib/neoon/client/request.rb', line 19

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