Module: ActiveGraph::Node::Property

Extended by:
ActiveSupport::Concern
Includes:
Shared::Property
Included in:
ActiveGraph::Node
Defined in:
lib/active_graph/node/property.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary

Constants included from Shared::Property

Shared::Property::NEO4J_DRIVER_DATA_TYPES

Constants included from Shared::Attributes

Shared::Attributes::DEPRECATED_OBJECT_METHODS

Instance Attribute Summary

Attributes included from Shared::Property

#_persisted_obj

Instance Method Summary collapse

Methods included from Shared::Property

#inject_defaults!, #inspect, #mutations_from_database, #read_attribute, #reload_properties!, #send_props, #undeclared_properties=

Methods included from Shared::TypecastedAttributes

#attribute_before_type_cast

Methods included from Shared::Attributes

#==, #attributes, #query_attribute, #write_attribute

Methods included from Shared::MassAssignment

#add_undeclared_property, #assign_attributes, #attributes=

Instance Method Details

#initialize(attributes = nil) ⇒ Object



6
7
8
9
# File 'lib/active_graph/node/property.rb', line 6

def initialize(attributes = nil)
  super(attributes)
  @attributes ||= ActiveGraph::AttributeSet.new(self.class.attributes_nil_hash, self.class.attributes.keys)
end