Sha256: ac7a099f5d047bf4219da54e10c3546cc9f9a39015c167af709c7e9e50d2c73c

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 Bytes

Contents

module Neo4j::Mapping
  module ClassMethods
    module Index
      def index(field, config = {})
        Neo4j::Node.index(field, config, index_name)
      end

      def find(field, query, config = {})
        Neo4j::Node.find(field, query, config, index_name)
      end

      def rm_index(field, config = {})
        Neo4j::Node.rm_index(field, config, index_name)
      end

      def index_name
        root_class
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
neo4j-1.0.0.beta.7 lib/neo4j/mapping/class_methods/index.rb
neo4j-1.0.0.beta.6 lib/neo4j/mapping/class_methods/index.rb
neo4j-1.0.0.beta.5 lib/neo4j/mapping/class_methods/index.rb
neo4j-1.0.0.beta.4 lib/neo4j/mapping/class_methods/index.rb
neo4j-1.0.0.beta.3 lib/neo4j/mapping/class_methods/index.rb
neo4j-1.0.0.beta.2 lib/neo4j/mapping/class_methods/index.rb
neo4j-1.0.0.beta.1 lib/neo4j/mapping/class_methods/index.rb