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
- #_description ⇒ Object
- #association_values ⇒ Object
- #meta_model_class ⇒ Object
- #naming_column_value ⇒ Object
Instance Method Details
#_description ⇒ Object
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_values ⇒ Object
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_class ⇒ Object
32 33 34 |
# File 'app/models/concerns/neo4j/meta_model/model_base.rb', line 32 def self.class. end |
#naming_column_value ⇒ Object
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 |