Module: Neo4j::PropertyContainer
- Includes:
- PropertyValidator
- Included in:
- Embedded::Property, Node, Relationship
- Defined in:
- lib/neo4j/property_container.rb
Constant Summary
Constants included from PropertyValidator
Neo4j::PropertyValidator::VALID_PROPERTY_VALUE_CLASSES
Instance Method Summary collapse
-
#[](key) ⇒ Object
Returns the Neo4j Property of given key.
-
#[]=(key, value) ⇒ Object
Sets the neo4j property.
Methods included from PropertyValidator
#valid_property?, #validate_property!
Instance Method Details
#[](key) ⇒ Object
Returns the Neo4j Property of given key
6 7 8 |
# File 'lib/neo4j/property_container.rb', line 6 def [](key) get_property(key) end |
#[]=(key, value) ⇒ Object
Sets the neo4j property
11 12 13 14 15 |
# File 'lib/neo4j/property_container.rb', line 11 def []=(key, value) validate_property!(value) set_property(key, value) end |