Module: Neo4j::PropertyContainer

Includes:
PropertyValidator
Included in:
Embedded::Property, Node, Relationship
Defined in:
lib/neo4j/property_container.rb

Constant Summary

Constant Summary

Constants included from PropertyValidator

Neo4j::PropertyValidator::VALID_PROPERTY_VALUE_CLASSES

Instance Method Summary (collapse)

Methods included from PropertyValidator

#valid_property?, #validate_property

Instance Method Details

- (Object) [](key)

Returns the Neo4j Property of given key



6
7
8
# File 'lib/neo4j/property_container.rb', line 6

def [](key)
  get_property(key)
end

- (Object) []=(key, value)

Sets the neo4j property



12
13
14
15
16
17
18
19
20
# File 'lib/neo4j/property_container.rb', line 12

def []=(key, value)
  validate_property(value)

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