Class: Eql::Adapters::Base
- Inherits:
-
Object
- Object
- Eql::Adapters::Base
- Defined in:
- lib/eql/adapters/base.rb
Overview
Base class contains basic adapter logic
Direct Known Subclasses
Defined Under Namespace
Modules: ContextHelpers
Instance Attribute Summary collapse
- #builder ⇒ Eql::Builder readonly
Class Method Summary collapse
-
.match?(conn) ⇒ Boolean
Does adapter match connection?.
Instance Method Summary collapse
-
#execute ⇒ Object
Execute adapter.
-
#extension ⇒ String
Get adapter’s template extensions.
-
#initialize(builder) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(builder) ⇒ Base
Returns a new instance of Base.
30 31 32 |
# File 'lib/eql/adapters/base.rb', line 30 def initialize(builder) @builder = builder end |
Instance Attribute Details
#builder ⇒ Eql::Builder (readonly)
14 15 16 |
# File 'lib/eql/adapters/base.rb', line 14 def builder @builder end |
Class Method Details
.match?(conn) ⇒ Boolean
Does adapter match connection?
23 24 25 |
# File 'lib/eql/adapters/base.rb', line 23 def self.match?(conn) raise NotImplementedError end |
Instance Method Details
#execute ⇒ Object
Execute adapter
39 40 41 |
# File 'lib/eql/adapters/base.rb', line 39 def execute raise NotImplementedError end |
#extension ⇒ String
Get adapter’s template extensions
48 49 50 |
# File 'lib/eql/adapters/base.rb', line 48 def extension '.erb' end |