Sha256: b12c6133c15a1616c7c71486bbe6e5078dfed24ddc186f9ca3ba487f35fd3870

Contents?: true

Size: 555 Bytes

Versions: 14

Compression:

Stored size: 555 Bytes

Contents

module Neo4j
  module Core
    # Can be used to define your own wrapper class around nodes and relationships
    module Wrapper

      # @return [self, Object] return self or a wrapper Ruby object
      # @see  Neo4j::Node::ClassMethods#wrapper
      def wrapper
        self.class.wrapper(self)
      end

      # 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.
      # @return self
      def _java_entity
        self
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
neo4j-core-2.3.0-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.2.4-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.2.3-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.2.2-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.2.1-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.2.0-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.2.0.rc1-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.1.0-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.0.1-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.0.0-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.0.0.rc2-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-2.0.0.rc1-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-0.0.15-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-0.0.14-java lib/neo4j-core/wrapper/wrapper.rb