Module: ActiveCypher::Model::ConnectionOwner

Extended by:
ActiveSupport::Concern
Includes:
Logging, ConnectionHandling
Included in:
Base, Relationship
Defined in:
lib/active_cypher/model/connection_owner.rb

Overview

Mixin for anything that “owns” a connection (nodes, relationships, maybe graph‑level service objects later). 100 % framework‑agnostic.

Instance Method Summary collapse

Methods included from Logging

#log_bench, #log_debug, #log_error, #log_info, #log_warn, #logger, logger

Instance Method Details

#adapter_classObject

Instance method to access the adapter class



49
50
51
# File 'lib/active_cypher/model/connection_owner.rb', line 49

def adapter_class
  self.class.adapter_class
end

#connectionObject

Instance method to access the connection dynamically



54
55
56
# File 'lib/active_cypher/model/connection_owner.rb', line 54

def connection
  self.class.connection
end