activegraph

https://github.com/neo4jrb/activegraph

Ruby

An active model wrapper for the Neo4j Graph Database for Ruby.

Neo4j::ActiveRel::RelatedNode#initialize

ActiveRel's related nodes can be initialized with nothing, an integer, or a fully wrapped node.

Initialization with nothing happens when a new, non-persisted ActiveRel object is first initialized.

Initialization with an integer happens when a relationship is loaded from the database. It loads using the ID
because that is provided by the Cypher response and does not require an extra query.

Source | Google | Stack overflow

Edit

git clone [email protected]:neo4jrb/activegraph.git

cd activegraph

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Neo4j--ActiveRel--RelatedNode-initialize-for-pr


# Commit to git

git add git commit -m "better docs for Neo4j::ActiveRel::RelatedNode#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Neo4j--ActiveRel--RelatedNode-initialize-for-pr

hub pull-request


# Celebrate!