Class: AgnosticBackend::Queryable::Executor
- Inherits:
-
Object
- Object
- AgnosticBackend::Queryable::Executor
- Defined in:
- lib/agnostic_backend/queryable/executor.rb
Direct Known Subclasses
Cloudsearch::Executor, AgnosticBackend::Queryable::Elasticsearch::Executor
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#visitor ⇒ Object
readonly
Returns the value of attribute visitor.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(query, visitor, **options) ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize(query, visitor, **options) ⇒ Executor
Returns a new instance of Executor.
9 10 11 12 13 |
# File 'lib/agnostic_backend/queryable/executor.rb', line 9 def initialize(query, visitor, **) @query = query @visitor = visitor @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/agnostic_backend/queryable/executor.rb', line 7 def @options end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
5 6 7 |
# File 'lib/agnostic_backend/queryable/executor.rb', line 5 def query @query end |
#visitor ⇒ Object (readonly)
Returns the value of attribute visitor.
6 7 8 |
# File 'lib/agnostic_backend/queryable/executor.rb', line 6 def visitor @visitor end |
Instance Method Details
#execute ⇒ Object
15 16 17 |
# File 'lib/agnostic_backend/queryable/executor.rb', line 15 def execute raise NotImplementedError, 'Abstract method' end |