Class: Kapellmeister::Dispatcher
- Defined in:
- lib/kapellmeister/dispatcher.rb
Defined Under Namespace
Classes: FailedResponse
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.inherited(base) ⇒ Object
16 17 18 19 |
# File 'lib/kapellmeister/dispatcher.rb', line 16 def self.inherited(base) super delegate :report, :logger, to: base.module_parent end |
.new(**args) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/kapellmeister/dispatcher.rb', line 7 def self.new(**args) main_klass = module_parent.name&.delete('::') module_parent.requests.each do |request| include Kapellmeister::RequestsExtension.request_processing(main_klass, request) end super(**args) end |
Instance Method Details
#configuration ⇒ Object
35 36 37 |
# File 'lib/kapellmeister/dispatcher.rb', line 35 def configuration self.class.module_parent.configuration end |
#headers ⇒ Object
23 24 25 |
# File 'lib/kapellmeister/dispatcher.rb', line 23 def headers {} end |
#query_params ⇒ Object
31 32 33 |
# File 'lib/kapellmeister/dispatcher.rb', line 31 def query_params {} end |
#request_options ⇒ Object
27 28 29 |
# File 'lib/kapellmeister/dispatcher.rb', line 27 def {} end |