Module: Neography::Rest::Relationships

Includes:
Helpers
Included in:
Neography::Rest
Defined in:
lib/neography/rest/relationships.rb

Instance Method Summary collapse

Methods included from Helpers

#encode, #escape, #get_id, #json_content_type, #parse_depth, #parse_direction, #parse_order, #parse_type, #parse_uniqueness

Instance Method Details

#delete_relationship(id) ⇒ Object


10
11
12
# File 'lib/neography/rest/relationships.rb', line 10

def delete_relationship(id)
  @connection.delete("/relationship/%{id}" % {:id => get_id(id)})
end

#get_relationship(id) ⇒ Object


6
7
8
# File 'lib/neography/rest/relationships.rb', line 6

def get_relationship(id)
  @connection.get("/relationship/%{id}" % {:id => get_id(id)})
end