Module: Neoon::Client::Request
- Included in:
- Connection
- Defined in:
- lib/neoon/client/request.rb
Instance Method Summary collapse
- #cypher(query, parameters = {}) ⇒ Object (also: #q)
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
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 = {}) = { :query => query, :params => parameters } post('/cypher', ) end |
#delete(path, options = {}) ⇒ Object
25 26 27 |
# File 'lib/neoon/client/request.rb', line 25 def delete(path, ={}) make_request(:delete, '/db/data' + path, ) end |
#get(path, options = {}) ⇒ Object
13 14 15 |
# File 'lib/neoon/client/request.rb', line 13 def get(path, ={}) make_request(:get, '/db/data' + path, ) end |
#post(path, options = {}) ⇒ Object
17 18 19 |
# File 'lib/neoon/client/request.rb', line 17 def post(path, ={}) make_request(:post, '/db/data' + path, ) end |
#put(path, options = {}) ⇒ Object
21 22 23 |
# File 'lib/neoon/client/request.rb', line 21 def put(path, ={}) make_request(:put, '/db/data' + path, ) end |