Skip to content

Commit

Permalink
make readme prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Nov 15, 2010
1 parent 0b5b547 commit 3a1cef5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ Neography is a thin ruby wrapper to the Neo4j Rest API, for more information:

=== Installation

gem install 'neography'
require 'neography'
gem install 'neography'
require 'neography'


==== Configuration

Neography::Config.use do |config|
config[:protocol] = 'http://'
config[:server] = 'localhost'
config[:port] = '9999'
end
Neography::Config.use do |config|
config[:protocol] = 'http://'
config[:server] = 'localhost'
config[:port] = '9999'
end

==== Rails

Expand All @@ -27,13 +27,13 @@ Use the defaults (shown above) or create neography.rb in your config/initializer

=== Documentation

Neography::Node.new # Create an empty node
Neography::Node.new(:age => 31, :name => "Max") # Create a node with some properties
Neography::Node.load(id) # Get a node and its properties
Neography::Node.set_properties(3, {:age => 31, :name => "Max"} ) # Deletes any existing properties with the passed hash
Neography::Node.properties(3) # Returns a hash of a node's properties or nil
Neography::Node.remove_property(3, :age) # Deletes the existing property
Neography::Node.del(3) # Deletes the node
Neography::Node.new # Create an empty node
Neography::Node.new(:age => 31, :name => "Max") # Create a node with some properties
Neography::Node.load(id) # Get a node and its properties
Neography::Node.set_properties(3, {:age => 31, :name => "Max"} ) # Deletes any existing properties with the passed hash
Neography::Node.properties(3) # Returns a hash of a node's properties or nil
Neography::Node.remove_property(3, :age) # Deletes the existing property
Neography::Node.del(3) # Deletes the node


=== License
Expand Down

0 comments on commit 3a1cef5

Please sign in to comment.