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::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


32
33
34
# File 'lib/active_graph/relationship/property.rb', line 32

def creates_unique_option
  self.class.creates_unique_option
end

#initialize(attributes = nil) ⇒ Object


28
29
30
# File 'lib/active_graph/relationship/property.rb', line 28

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


24
25
26
# File 'lib/active_graph/relationship/property.rb', line 24

def type
  self.class.type
end