module ActiveGraph::Node::Property
Public Class Methods
new(attributes = nil)
click to toggle source
Calls superclass method
ActiveGraph::Shared::Property::new
# File lib/active_graph/node/property.rb 6 def initialize(attributes = nil) 7 super(attributes) 8 @attributes ||= ActiveGraph::AttributeSet.new(self.class.attributes_nil_hash, self.class.attributes.keys) 9 end
Private Instance Methods
inspect_attributes()
click to toggle source
# File lib/active_graph/node/property.rb 49 def inspect_attributes 50 id_property_name = self.class.id_property_name.to_s 51 52 attribute_pairs = attributes.except(id_property_name).sort.map do |key, value| 53 [key, (value.is_a?(String) && value.size > 100) ? value.dup[0..100] : value] 54 end 55 56 attribute_pairs.unshift([id_property_name, self.send(id_property_name)]) 57 attribute_pairs 58 end