Module: PumaAfterReply::Config
- Defined in:
- lib/puma_after_reply/config.rb
Overview
Class Attribute Summary collapse
- .after_reply ⇒ nil, ...
- .before_reply ⇒ nil, ...
- .fail_on_error ⇒ Boolean
- .log_error ⇒ nil, ...
- .on_error ⇒ nil, ...
- .run_anyway ⇒ Boolean
- .thread_pool_size ⇒ Integer
Class Method Summary collapse
- .__reset! ⇒ void
- .configure(&configuration) ⇒ void
-
.to_h ⇒ Hash<Symbol,Any>
rubocop:disable Style/EndlessMethod.
- .to_s ⇒ String
Class Attribute Details
.after_reply ⇒ nil, ...
35 36 37 |
# File 'lib/puma_after_reply/config.rb', line 35 def after_reply @after_reply end |
.before_reply ⇒ nil, ...
29 30 31 |
# File 'lib/puma_after_reply/config.rb', line 29 def before_reply @before_reply end |
.fail_on_error ⇒ Boolean
11 12 13 |
# File 'lib/puma_after_reply/config.rb', line 11 def fail_on_error @fail_on_error end |
.log_error ⇒ nil, ...
17 18 19 |
# File 'lib/puma_after_reply/config.rb', line 17 def log_error @log_error end |
.on_error ⇒ nil, ...
23 24 25 |
# File 'lib/puma_after_reply/config.rb', line 23 def on_error @on_error end |
.run_anyway ⇒ Boolean
41 42 43 |
# File 'lib/puma_after_reply/config.rb', line 41 def run_anyway @run_anyway end |
.thread_pool_size ⇒ Integer
47 48 49 |
# File 'lib/puma_after_reply/config.rb', line 47 def thread_pool_size @thread_pool_size end |
Class Method Details
.__reset! ⇒ void
This method returns an undefined value.
84 85 86 87 88 89 90 91 92 |
# File 'lib/puma_after_reply/config.rb', line 84 def __reset! self.fail_on_error = false self.log_error = nil self.on_error = nil self.before_reply = nil self.after_reply = nil self.run_anyway = false self.thread_pool_size = 10 end |
.configure(&configuration) ⇒ void
This method returns an undefined value.
54 55 56 |
# File 'lib/puma_after_reply/config.rb', line 54 def configure(&configuration) instance_eval(&configuration) end |
.to_h ⇒ Hash<Symbol,Any>
rubocop:disable Style/EndlessMethod
63 64 65 66 67 68 69 70 71 72 |
# File 'lib/puma_after_reply/config.rb', line 63 def to_h = { fail_on_error:, log_error:, on_error:, before_reply:, after_reply:, run_anyway:, thread_pool_size: } # rubocop:enable Style/EndlessMethod |
.to_s ⇒ String
78 |
# File 'lib/puma_after_reply/config.rb', line 78 def to_s = to_h.inspect |