Module: Neo4j::ActiveRel::Property

Extended by:
ActiveSupport::Concern
Includes:
Shared::Property
Included in:
Neo4j::ActiveRel
Defined in:
lib/neo4j/active_rel/property.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary

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

#creates_unique_optionObject



35
36
37
# File 'lib/neo4j/active_rel/property.rb', line 35

def creates_unique_option
  self.class.creates_unique_option
end

#initialize(attributes = nil) ⇒ Object



31
32
33
# File 'lib/neo4j/active_rel/property.rb', line 31

def initialize(attributes = nil)
  super(attributes)
end

#typeString Also known as: rel_type

Returns a string representing the relationship type that will be created.

Returns:

  • (String)

    a string representing the relationship type that will be created



26
27
28
# File 'lib/neo4j/active_rel/property.rb', line 26

def type
  self.class.type
end