module ActiveGraph::Relationship::Property
Public Class Methods
new(attributes = nil)
click to toggle source
Calls superclass method
ActiveGraph::Shared::Property::new
# File lib/active_graph/relationship/property.rb 28 def initialize(attributes = nil) 29 super(attributes) 30 end
Public Instance Methods
creates_unique_option()
click to toggle source
# File lib/active_graph/relationship/property.rb 32 def creates_unique_option 33 self.class.creates_unique_option 34 end
type()
click to toggle source
@return [String] a string representing the relationship type that will be created
# File lib/active_graph/relationship/property.rb 24 def type 25 self.class.type 26 end
Private Instance Methods
inspect_attributes()
click to toggle source
# File lib/active_graph/relationship/property.rb 88 def inspect_attributes 89 attributes.to_a 90 end
load_nodes(from_node = nil, to_node = nil)
click to toggle source
# File lib/active_graph/relationship/property.rb 83 def load_nodes(from_node = nil, to_node = nil) 84 @from_node = RelatedNode.new(from_node) 85 @to_node = RelatedNode.new(to_node) 86 end