module Neo4j::ActiveNode::Property

Public Class Methods

new(attributes = nil) click to toggle source
Calls superclass method Neo4j::Shared::Property::new
  # File lib/neo4j/active_node/property.rb
6 def initialize(attributes = nil)
7   super(attributes)
8   @attributes ||= Hash[self.class.attributes_nil_hash]
9 end

Private Instance Methods

inspect_attributes() click to toggle source
   # File lib/neo4j/active_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