Class: AgnosticBackend::Queryable::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/agnostic_backend/queryable/executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, **options)
  @query = query
  @visitor = visitor
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/agnostic_backend/queryable/executor.rb', line 7

def options
  @options
end

#queryObject (readonly)

Returns the value of attribute query.



5
6
7
# File 'lib/agnostic_backend/queryable/executor.rb', line 5

def query
  @query
end

#visitorObject (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

#executeObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/agnostic_backend/queryable/executor.rb', line 15

def execute
  raise NotImplementedError, 'Abstract method'
end