Attributes¶
Attributes provides a set of class methods for defining an attributes schema and instance methods for reading and writing attributes.
Originally part of ActiveAttr, https://github.com/cgriego/active_attr
Constants¶
- DEPRECATED_OBJECT_METHODS
Methods¶
- #[]=
Write a single attribute to the model’s attribute hash.
def write_attribute(name, value) if respond_to? "#{name}=" send "#{name}=", value else fail Neo4j::UnknownAttributeError, "unknown attribute: #{name}" end end