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.1.1 lib/neo4j/property_container.rb
neo4j-core-3.1.0 lib/neo4j/property_container.rb
neo4j-core-3.0.8 lib/neo4j/property_container.rb
neo4j-core-3.0.7 lib/neo4j/property_container.rb
neo4j-core-3.0.6 lib/neo4j/property_container.rb
neo4j-core-3.0.5 lib/neo4j/property_container.rb
neo4j-core-3.0.4 lib/neo4j/property_container.rb
neo4j-core-3.0.3 lib/neo4j/property_container.rb
neo4j-core-3.0.2 lib/neo4j/property_container.rb
neo4j-core-3.0.1 lib/neo4j/property_container.rb
neo4j-core-3.0.0 lib/neo4j/property_container.rb
neo4j-core-3.0.0.rc.5 lib/neo4j/property_container.rb
neo4j-core-3.0.0.rc.4 lib/neo4j/property_container.rb
neo4j-core-3.0.0.rc.1 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.19 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.18 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.17 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.16 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.15 lib/neo4j/property_container.rb
neo4j-core-3.0.0.alpha.14 lib/neo4j/property_container.rb