Sha256: c40bd3a22d07e5efd16d4e0274632e55b7380f6149a6e62fafe687d1bc0d6e76

Contents?: true

Size: 381 Bytes

Versions: 8

Compression:

Stored size: 381 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

8 entries across 8 versions & 1 rubygems

Version Path
neo4j-core-4.0.7 lib/neo4j/property_container.rb
neo4j-core-4.0.6 lib/neo4j/property_container.rb
neo4j-core-4.0.5 lib/neo4j/property_container.rb
neo4j-core-4.0.4 lib/neo4j/property_container.rb
neo4j-core-4.0.3 lib/neo4j/property_container.rb
neo4j-core-4.0.2 lib/neo4j/property_container.rb
neo4j-core-4.0.1 lib/neo4j/property_container.rb
neo4j-core-4.0.0 lib/neo4j/property_container.rb