activegraph
https://github.com/neo4jrb/activegraph
Ruby
An active model wrapper for the Neo4j Graph Database for Ruby.
Neo4j::ActiveNode::HasN::ClassMethods#has_one
For defining an "has one" association on a model. This defines a set of methods on your model instances. For instance, if you define the association on a Person model: has_one :out, :vehicle, type: :has_vehicle This would define the methods: ``#vehicle``, ``#vehicle=``, and ``.vehicle``. See :ref:`#has_many <Neo4j/ActiveNode/HasN/ClassMethods#has_many>` for anything not specified here
Edit
git clone [email protected]:neo4jrb/activegraph.git
cd activegraph
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Neo4j--ActiveNode--HasN--ClassMethods-has_one-for-pr
# Commit to gitgit add git commit -m "better docs for Neo4j::ActiveNode::HasN::ClassMethods#has_one"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Neo4j--ActiveNode--HasN--ClassMethods-has_one-for-pr
hub pull-request
# Celebrate!