Class: Hecks::Application::QueryRunner
- Inherits:
-
Object
- Object
- Hecks::Application::QueryRunner
- Defined in:
- lib/queries/query_runner.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(query_name:, application:, module_name:, args:) ⇒ QueryRunner
constructor
A new instance of QueryRunner.
Constructor Details
#initialize(query_name:, application:, module_name:, args:) ⇒ QueryRunner
Returns a new instance of QueryRunner.
4 5 6 7 8 9 |
# File 'lib/queries/query_runner.rb', line 4 def initialize(query_name:, application:, module_name:, args:) @query_name = query_name @application = application @module_name = module_name @args = args end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/queries/query_runner.rb', line 11 def call() fetch.new(repository: repository).call(@args) end |