Skip to content

Commit

Permalink
Merge branch 'master' of github.com:maxdemarzi/neography
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Nov 30, 2011
2 parents 60d32ac + f48cfc7 commit 566c999
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/neography.rb
Expand Up @@ -10,8 +10,6 @@ def find_and_require_user_defined_code
end
end
end
else
puts "No Extensions Found: #{extensions_path}"
end
end

Expand Down
8 changes: 8 additions & 0 deletions lib/neography/rest.rb
Expand Up @@ -176,6 +176,14 @@ def get_relationship(id)
get("/relationship/#{get_id(id)}")
end

def get_relationship_start_node(rel)
get_node(rel["start"])
end

def get_relationship_end_node(rel)
get_node(rel["end"])
end

def reset_relationship_properties(id, properties)
options = { :body => properties.to_json, :headers => {'Content-Type' => 'application/json'} }
put("/relationship/#{get_id(id)}/properties", options)
Expand Down

0 comments on commit 566c999

Please sign in to comment.