Module: ActiveGraph::Relationship::Property

Extended by:
ActiveSupport::Concern
Includes:
Shared::Property
Included in:
ActiveGraph::Relationship
Defined in:
lib/active_graph/relationship/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::ATTRIBUTES_METHOD_PATTERNS, 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



30
31
32
# File 'lib/active_graph/relationship/property.rb', line 30

def creates_unique_option
  self.class.creates_unique_option
end

#initialize(attributes = nil) ⇒ Object



26
27
28
# File 'lib/active_graph/relationship/property.rb', line 26

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

#typeString

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

Returns:

  • (String)

    a string representing the relationship type that will be created



22
23
24
# File 'lib/active_graph/relationship/property.rb', line 22

def type
  self.class.type
end