Module: Neo4j::MetaModel::ModelBase

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/neo4j/meta_model/model_base.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

LOADED_CLASSES =
[]

Instance Method Summary collapse

Instance Method Details

#_descriptionObject



42
43
44
# File 'app/models/concerns/neo4j/meta_model/model_base.rb', line 42

def _description
  self.send(self.class.naming_column)
end

#association_valuesObject



36
37
38
39
40
# File 'app/models/concerns/neo4j/meta_model/model_base.rb', line 36

def association_values
  self.class.associations.each_with_object({}) do |(key, _), result|
    result[key] = self.send(key)
  end
end

#meta_model_classObject



32
33
34
# File 'app/models/concerns/neo4j/meta_model/model_base.rb', line 32

def meta_model_class
  self.class.meta_model_class
end

#naming_column_valueObject



28
29
30
# File 'app/models/concerns/neo4j/meta_model/model_base.rb', line 28

def naming_column_value
  self.read_attribute(self.class.naming_column)
end