ClassMethods

Constants

Methods

#_attribute_type

Calculates an attribute type

def _attribute_type(attribute_name)
  attributes[attribute_name].type || Object
end
#inspect

Returns the class name plus its attribute names and types

def inspect
  inspected_attributes = attribute_names.sort.map { |name| "#{name}: #{_attribute_type(name)}" }
  attributes_list = "(#{inspected_attributes.join(', ')})" unless inspected_attributes.empty?
  "#{name}#{attributes_list}"
end

#typecast_attribute

def typecast_attribute(typecaster, value)
  Neo4j::Shared::TypeConverters.typecast_attribute(typecaster, value)
end