Sha256: 4c2bb60a9a9f91462371e017d7c388c587bc1e644f4ca767aa81e4c295f7bb28

Contents?: true

Size: 378 Bytes

Versions: 33

Compression:

Stored size: 378 Bytes

Contents

module Neo4j
  module PropertyContainer
    include Neo4j::PropertyValidator

    # Returns the Neo4j Property of given key
    def [](key)
      get_property(key)
    end


    # Sets the neo4j property
    def []=(key,value)
      validate_property(value)

      if value.nil?
        remove_property(key)
      else
        set_property(key,value)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
neo4j-core-3.0.0.alpha.13 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.12 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.11 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.10 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.9 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.8 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.7 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.6 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.5 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.4 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.3 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.2 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.1 lib/neo4j/property_container.rb