Module: Neo4j::Core::Wrapper
- Included in:
- Node, Relationship
- Defined in:
- lib/neo4j-core/wrapper/wrapper.rb,
lib/neo4j-core/wrapper/class_methods.rb
Overview
Can be used to define your own wrapper class around nodes and relationships
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#_java_entity ⇒ Object
This can be implemented by a wrapper to returned the underlying java node or relationship.
-
#wrapper ⇒ self, Object
Return self or a wrapper Ruby object.
Instance Method Details
#_java_entity ⇒ Object
This can be implemented by a wrapper to returned the underlying java node or relationship. You can override this method in your own wrapper class.
15 16 17 |
# File 'lib/neo4j-core/wrapper/wrapper.rb', line 15 def _java_entity self end |
#wrapper ⇒ self, Object
Return self or a wrapper Ruby object
8 9 10 |
# File 'lib/neo4j-core/wrapper/wrapper.rb', line 8 def wrapper self.class.wrapper(self) end |