Class: Axiom::Adapter::Arango::Adapter
- Inherits:
-
Object
- Object
- Axiom::Adapter::Arango::Adapter
- Includes:
- Adamantium::Flat
- Defined in:
- lib/axiom/adapter/arango/adapter.rb
Overview
Adapter to read tuples from remote ArangoDB
Instance Attribute Summary collapse
-
#database ⇒ ArangoDB::Database
readonly
private
Return database.
-
#logger ⇒ Logger
readonly
private
Return logger.
Class Method Summary collapse
-
.new(_database, _logger = NullLogger.instance) ⇒ undefined
Return new adapter.
Instance Method Summary collapse
-
#gateway(base_relation) ⇒ Gateway
Return gateway for the ArangoDB adapter.
-
#reader(base_relation) ⇒ Reader
private
Return reader for base relation.
Instance Attribute Details
#database ⇒ ArangoDB::Database (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return database
23 24 25 |
# File 'lib/axiom/adapter/arango/adapter.rb', line 23 def database @database end |
#logger ⇒ Logger (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return logger
15 16 17 |
# File 'lib/axiom/adapter/arango/adapter.rb', line 15 def logger @logger end |
Class Method Details
.new(_database, _logger = NullLogger.instance) ⇒ undefined
Return new adapter
39 40 41 |
# File 'lib/axiom/adapter/arango/adapter.rb', line 39 def self.new(_database, _logger = NullLogger.instance) super end |
Instance Method Details
#gateway(base_relation) ⇒ Gateway
Return gateway for the ArangoDB adapter
77 78 79 |
# File 'lib/axiom/adapter/arango/adapter.rb', line 77 def gateway(base_relation) Gateway.new(self, base_relation) end |
#reader(base_relation) ⇒ Reader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return reader for base relation
53 54 55 |
# File 'lib/axiom/adapter/arango/adapter.rb', line 53 def reader(base_relation) Reader.new(self, base_relation) end |