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
Instance Method Summary collapse
- #creates_unique_option ⇒ Object
- #initialize(attributes = nil) ⇒ Object
-
#type ⇒ String
A string representing the relationship type that will be created.
Methods included from Shared::Property
#inject_defaults!, #inspect, #mutations_from_database, #read_attribute, #reload_properties!, #send_props, #undeclared_properties=
Methods included from Shared::TypecastedAttributes
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_option ⇒ Object
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 |
#type ⇒ String
Returns 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 |