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
5 6 7 8 |
# File 'lib/neoon/client/request.rb', line 5 def cypher(query, parameters = {}) = { :query => query, :params => parameters } post('/cypher', ) end |
#delete(path, options = {}) ⇒ Object
23 24 25 |
# File 'lib/neoon/client/request.rb', line 23 def delete(path, ={}) make_request(:delete, '/db/data' + path, ) end |
#get(path, options = {}) ⇒ Object
11 12 13 |
# File 'lib/neoon/client/request.rb', line 11 def get(path, ={}) make_request(:get, '/db/data' + path, ) end |
#post(path, options = {}) ⇒ Object
15 16 17 |
# File 'lib/neoon/client/request.rb', line 15 def post(path, ={}) make_request(:post, '/db/data' + path, ) end |
#put(path, options = {}) ⇒ Object
19 20 21 |
# File 'lib/neoon/client/request.rb', line 19 def put(path, ={}) make_request(:put, '/db/data' + path, ) end |