Class: Neo4j::Core::CypherSession
- Inherits:
-
Object
- Object
- Neo4j::Core::CypherSession
- Defined in:
- lib/neo4j/core/cypher_session.rb,
lib/neo4j/core/cypher_session/result.rb,
lib/neo4j/core/cypher_session/adaptors.rb,
lib/neo4j/core/cypher_session/responses.rb,
lib/neo4j/core/cypher_session/transactions.rb,
lib/neo4j/core/cypher_session/adaptors/bolt.rb,
lib/neo4j/core/cypher_session/adaptors/http.rb,
lib/neo4j/core/cypher_session/responses/bolt.rb,
lib/neo4j/core/cypher_session/responses/http.rb,
lib/neo4j/core/cypher_session/adaptors/driver.rb,
lib/neo4j/core/cypher_session/adaptors/schema.rb,
lib/neo4j/core/cypher_session/adaptors/has_uri.rb,
lib/neo4j/core/cypher_session/responses/driver.rb,
lib/neo4j/core/cypher_session/adaptors/embedded.rb,
lib/neo4j/core/cypher_session/transactions/bolt.rb,
lib/neo4j/core/cypher_session/transactions/http.rb,
lib/neo4j/core/cypher_session/responses/embedded.rb,
lib/neo4j/core/cypher_session/transactions/driver.rb,
lib/neo4j/core/cypher_session/transactions/embedded.rb
Defined Under Namespace
Modules: Adaptors, Responses, SchemaErrors, Transactions Classes: ConnectionFailedError, CypherError, Result
Instance Attribute Summary collapse
-
#adaptor ⇒ Object
readonly
Returns the value of attribute adaptor.
Instance Method Summary collapse
-
#initialize(adaptor) ⇒ CypherSession
constructor
A new instance of CypherSession.
- #transaction_class ⇒ Object
Constructor Details
#initialize(adaptor) ⇒ CypherSession
Returns a new instance of CypherSession.
9 10 11 12 13 14 15 |
# File 'lib/neo4j/core/cypher_session.rb', line 9 def initialize(adaptor) fail ArgumentError, "Invalid adaptor: #{adaptor.inspect}" if !adaptor.is_a?(Adaptors::Base) @adaptor = adaptor @adaptor.connect end |
Instance Attribute Details
#adaptor ⇒ Object (readonly)
Returns the value of attribute adaptor.
6 7 8 |
# File 'lib/neo4j/core/cypher_session.rb', line 6 def adaptor @adaptor end |
Instance Method Details
#transaction_class ⇒ Object
17 18 19 |
# File 'lib/neo4j/core/cypher_session.rb', line 17 def transaction_class Neo4j::Core::CypherSession::Transactions::Base end |